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


Please Help Members By Posting Answers For Below Questions

What is the dot operator?

572


difference between byte stream class and character stream class?

4086


When does a class need a virtual destructor?

532


Can we override the private methods?

527


What is the purpose of the system class in java programming?

547






Discuss 2D arrays.

610


How do you use equal in java?

543


Explain creating threads by extending thread class ?

580


What is encapsulation in java?

627


How big is a 32 bit integer?

529


What an i/o filter in java programming?

608


What is <> used for in java?

672


What is a nested class?

598


What is final keyword in java? Give an example.

578


How a variable is stored in memory?

503