if a java file without any source code is valid java file?

Answer Posted / gaurav kumar

yes a java file without any source code is valid java file.
it will compile without any error but while running it gives
error-
"could not find or load main class----"

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain different types of thread priorities ?

612


Is alive method in java?

500


Can java hashmap have duplicate keys?

502


How can an exception be thrown manually by a programmer?

501


What is double checked locking in singleton?

602






Is null an object in java?

553


How to sort list of list in java?

651


What are the basic control structures?

492


what is use of functional interface in java 8?

550


What does main method?

550


How does regex work?

515


What is purpose of applet programming?

629


What is Session reduplication and how its done?

1558


What does the “static” keyword mean? Can you override private or static method in java?

619


What is the best way to findout the time/memory consuming process?

547