Why only one Class is public in one file? Explain in
details. Thanks in Advance.
Answer Posted / mahendra
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 ? | 12 Yes | 8 No |
Post New Answer View All Answers
Define max and min heap, also the search time of heap.
What is the base class for error and exception?
What are the benefits of operations in java?
How many bytes is 255 characters?
What type of variable is error flag?
What is the purpose of the main method?
What are the important methods of java exception class?
Which java version is latest?
What are three advantages of using functions?
What is the meaning of course?
What is the purpose of file class?
What are java methods?
If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?
What will happen if static modifier is removed from the signature of the main method?
Can the garbage collection be forced by any means?