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

What is meant by anonymous class?

605


What is anagram number?

466


Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.

604


What is methods in java?

528


What is java reflection api?

565






What does %d do in java?

588


How can you add and remove nodes in jtree?

623


why java does not support unsigned keyword?

4297


Can we cast any other type to boolean type with type casting?

549


What does compareto () do in java?

582


What are assembly attributes?

557


What is the purpose of the enableevents() method?

591


What is the difference between assignment and initialization?

567


What is linked hashset and its features?

561


Does list allow duplicates in java?

530