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 the difference between the prefix and postfix forms of the ++ operator?
Difference between class#getinstance() and new operator ?
Why bytecode is called bytecode?
Why pointers are not used in java?
Explain numeric promotion?
What are different ways of object creation in java ?
What is binary tree in java?
What 4 doubled?
What is an interface in java?
What is difference between calling start() and run() method of thread?
What is jdbc api?
can any body body expalin best definitions & best real time exaples for opps concepts.
What is meant by inheritance and what are its advantages?
What are the important features of Java 10 release?
What is class and object in java?