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 do you mean Abstraction in java?
how session will be expired ?
What is the difference between class & object?
how we can create packages in java?
Name few java 8 annotations ?
what is real-time example of runtime polymorphism and compile time polymorphism
Explain about the main() method in java?
What are format specifiers in java?
What is the difference between equals() and?
Why should we use java?
How to retrieve data from database in java using arraylist?
Explain differences between collection api and stream api?