Why only one Class is public in one file? Explain in
details. Thanks in Advance.
Answer Posted / ganesh slv
Sorry for the above..
its
If you declared a class as public, your file name should be
the same of your class name.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
How a string is stored in memory?
How do you add an element to a set in java?
Is string a wrapper class?
What is the += operator called?
What are java annotations?
Difference between stack and queue?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
What is the difference between heap and stack memory?
What is meant by local variable and instance variable?
Write code of any action class?
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
How to compare strings in java?
What is methodological theory?
How arrays are stored in memory in java?
What is finally and finalize in java?