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 a class reference?
What are keywords in java?
What is method overloading and method overriding?
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
What is meant by the value of a variable?
Is 0 true or false in java?
What is the full meaning of java?
What are different types of constants?
What is difference between stringbuffer and string?
What are the limitations of procedural programming approach?
What is JFC?
What is multi-catch block in java?
Is vector ordered in java?
Can we call the constructor of a class more than once for an object?
Is jdk required on each machine to run a java program?