Why only one Class is public in one file? Explain in
details. Thanks in Advance.
Answer Posted / rakesh soni
Hi Mahendra,
This is OK that, compiler allowed only one class as public
per file. But my question is, why compiler allowed only one
class as a public in one file, why not more then one???
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
What programs use java?
What is difference between module and function?
Explain different types of wrapper classes in java?
When is update method called?
What is math in java?
What is the set interface in java programming?
What are dot operator queries?
What are the supported platforms by java programming language?
What is definition and declaration?
When should you use arraylist and when should you use linkedlist?
What are the two basic ways in which classes that can be run as threads may be defined?
What is the main purpose of java?
How do you add an element to a hashset in java?
What is ternary operator in java?
What is the difference between replace and replace all?