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 is codebase?
Why all programming languages have main as a execution starting point?
what is use of marker interface? give me good example?
What are the kinds of polymorphism?
Why singleton is not thread safe?
What is a list in java?
What do you mean by platform independence?
What is sortedmap interface?
Does java have extension methods?
What are java packages?
WHAT IS THE MEANING OF ALL TYPE OF BUZZWORDS?
How can we make a class singleton?