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's the access scope of protected access specifier?
Can you explain the usages of class.forname()?
What is variable and rules of variable?
Why do we need autoboxing in java?
What is constructor and its types?
Explain what do you mean by functional overloading in java?
What is lexicographically smallest string?
What is locale in java?
When should I use singleton?
What are measurable parameters?
What data type is string java?
How do you calculate square roots?
Is vector thread safe in java?
worst case complexities of Quick sort and Merge sort.
Is arraylist an object in java?