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 about interrupt() method of thread class ?
why did you choose your career in IT?
How can you traverse a linked list in java?
How do you start a new line in java?
What is a generic code?
Why are strings immutable in Java?
Difference between comparator and comparable in java?
What is the use of object and class classes?
Why is the main method static in Java?
wht is customised exception?
1 Answers Logica CMG, Novell, Prudential,
Is array synchronized in java?
What is thread life cycle?