if a java file without any source code is valid java file?
Answers were Sorted based on User's Feedback
Answer / kartik kudada
Yes, It is possible .
java file can be empty.
You could check it eclipse.
| Is This Answer Correct ? | 15 Yes | 3 No |
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 |
What are legal modifiers that we can use to declare an inner class?
What are the methods to rectify ambiguities in the interfaces in JAVA?
what is the use of abstract class?
3 Answers Amdocs, Atos Origin, Invictus,
Write a method that will remove given character from the string?
Can a class be private or protected in java?
What is the abstract class?
What is method overloading and method overriding?
What is a null point?
Can we execute java program without main method?
Will set allow duplicates in java?
What is a local, member and a class variable?
what is the use of clone() in real time scenario?