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
Explain the difference between an Interface and an Abstract class?
Define how objects are stored in java?
Can we have any code between try and catch blocks?
What is string variable?
Why arraylist is not synchronized in java example?
What is difference between call by value and call by reference?
What is jit compiler ?
What is instance synchronization?
What are exception handling keywords in java?
What is the use of optional ?
What is garbage collection? What is the process that is responsible for doing that in java?
What is string subsequence method?
What is an example of a boolean?
What is the locale class in java programming?
What restrictions are placed on method overriding in java programming?