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
Define linked list and its features with signature?
What are the different ways to handle exceptions?
Is a char always 1 byte?
What is a Presistent Object?
When is the finally clause of a try-catch-finally statement executed?
What are the features of junit?
What is a hashmap used for?
Define packages in java?
What purpose do the keywords final, finally, and finalize fulfill?
What is the different types of functions?
What is the parse method in java?
does java support pointers?
What is yield () in java?
How do you remove an object from an arraylist in java?
Is nan false?