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 is autoboxing in java?
How do you create a method in java?
What is rmi and steps involved in developing an rmi object?
How many bytes is a url?
What do you mean by inner class in java?
What 5 doubled?
Can we force garbage collector to run ?
I want to persist data of objects for later use. What’s the best approach to do so?
What is autoboxing and unboxing?
How to split arraylist elements in java?
What is Java Shutdown Hook?
Explain different ways of creating a thread. Which one would you prefer and why?
When should the method invokelater() be used?
What are locale settings?
Explain the importance of finally block in java?