Java
Is an empt ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
Is an empty file allowed to compile?
Yes
No
Explanation
Before the compiler starts processing a file, it does not know its content. An empty file does not contain any error, like a file with only comments. But such a file does not produce a class file.
compilation
source-file
1
(3)
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
Related Content
What will be printed out as a result of the following code execution / compilati...
What will be the result of the following code compilation and execution? ...
What will be the result of the compilation and execution of the following code: ...
What will happen when you try to compile and run the following code? It is assum...
What lines will the compilation error occur in: class M...
J
ava
Quiz
Login to learn Java
or
Read more about
Java Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Keep exploring
Java quizzes
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
int i = Integer.MAX_VALUE + 10; What is th...
What happens after the following code is compiled and run: ...
What will be the result of the following program execution? ...
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment