if a java file without any source code is valid java file?

Answer Posted / kartik kudada

Yes, It is possible .

java file can be empty.
You could check it eclipse.

Is This Answer Correct ?    15 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between break and continue statements?

535


what is the major difference between linkedlist and arraylist in java?

538


What is void class in java?

510


How concurrent hashmap works?

596


Which collection allows duplicate values in java?

531






How to implement a multithreaded applet?

2189


What are the different types of garbage collectors in java?

535


Which class should you use to obtain design information about an object in java programming?

631


How does thread synchronization occurs inside a monitor?

533


What is runtime polymorphism or dynamic method dispatch?

510


What is meant by design patterns?

569


Can sleep() method causes another thread to sleep?

552


What will happen when using pass by reference in java?

506


Can we use a default constructor of a class even if an explicit constructor is defined?

638


Can we rethrow the same exception from catch handler?

550