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
What is anonymous inner class?
Is there any sort function in java?
Explain about sets?
Can long be null in java?
What technique is carried out to find out if a particular string is empty?
Why java is said to be pass-by-value ?
What is a concrete classes? Is Java object class is concrete class?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
How to perform quicksort in java?
Is set thread safe java?
Can array grow dynamically in java?
Can an arraylist be empty?
Define how does a try statement determine which catch clause should be used to handle an exception?
What is a method in coding?
What is the difference between multitasking and multithreading in Java