Why only one Class is public in one file? Explain in
details. Thanks in Advance.
Answer Posted / janardhan
In an aplication public class is main class with main()
method as entry point
java compiler allows only one public class in file
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a arraylist in java?
What is concurrent hashmap and its features?
Difference between stack and queue?
What is the purpose of using java.lang.class class?
What is a class instance variable?
What is the use of System class?
What are keywords give examples?
What is composition in java?
What is a locale?
How variables are declared?
What are the object and class classes used for?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
What is the use of hashmap in java?
Where local and global variables are stored?
Why local variables are stored in stack?