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 stored procedure. How do you create stored procedure ?
What is the purpose of final keyword and when to use it?
When should I use singleton?
What is the main function in java?
What is the final class modifier?
How many types of string data types are there?
What do you mean by inner class in java?
How will you get the platform dependent values like line separator, path separator, etc., ?
How many bits are in a sentence?
What is a module function?
How we create object in copy constructor?
What is the use of 'super' keyword inside a constructor?
Why string is a class?
What is a method vs function?
What is entry set in java?