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
Is it possible to specify multiple jndi names when deploying an ejb?
How listener identify that the event came from a particular object?
How many ways can we create singleton class?
Why call by value prevents parameter value change?
why an outer class cannot be declared as private?
What is anagram number?
What are java threads?
How to create a base64 decoder in java8?
do I need to use synchronized on setvalue(int)? : Java thread
Can a constructor be private and how are this() and super() method used with constructor?
What is mutable object and immutable object?
Where is const variable stored?
What is join () in java?
What is final keyword?
What is polymorphism and what are the types of it?