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 are static blocks and static initalizers in java ?

653


How to split a string in java?

732


Write a program to show whether a graph is a tree or not using adjacency matrix.

703


Why is the type for real numbers called double?

634


What are static blocks in java ?

701






What is the program development process?

648


What access modifiers can be used for variables?

698


What is a values collection view ?

759


Why main method is called first in java?

621


How will you reverse a singly-link list?

692


What is Major and importance difference between for and foreach loop ?

672


Difference between this() and super() ?

673


How does compareto work in java?

678


What is an association?

648


What is incompatible types in java?

628