Why only one Class is public in one file? Explain in
details. Thanks in Advance.
Answer Posted / malay
I think that you call only public classes from outside.Now
all these classe are kept in a .java file.So there should
be a one to one mapping between a public class
& .java/.class file.If there are more than one public
classes then JVM has to maintain a tracker that what all
classes are in single .java/.class file.Presently its easy
for JVM coz when a class is called it simply goes & load
the .class file with that name.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
When is the arraystoreexception thrown?
What are the different collection views provided by maps?
What is a numeric literal?
What is a parent class in java?
What is string [] args?
What is compareto () in java?
What is :: operator in java 8?
Is java written in c?
What are classloaders?
Why webdriver is an interface?
Explain about anonymous inner classes ?
How can we create a thread in java?
Describe 2 different ways to concatenate two strings.
How to change value in arraylist java?
What is the java project architecture?