if a java file without any source code is valid java file?
Answer Posted / la_di
(I suppose you mean IS not IF)
No, an empty file is not a valid java file since you have
to use the same class-name as file name. (A file with a
valid class declaration but an empty body is valid thou)
Is This Answer Correct ? | 5 Yes | 11 No |
Post New Answer View All Answers
What is the dot operator?
difference between byte stream class and character stream class?
When does a class need a virtual destructor?
Can we override the private methods?
What is the purpose of the system class in java programming?
Discuss 2D arrays.
How do you use equal in java?
Explain creating threads by extending thread class ?
What is encapsulation in java?
How big is a 32 bit integer?
What an i/o filter in java programming?
What is <> used for in java?
What is a nested class?
What is final keyword in java? Give an example.
How a variable is stored in memory?