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 a java string?
What is method overloading in JAVA? Why is it not present in C ?
What are the advantages of passing this into a method instead of the current class object itself?
How do you reverse sort in java?
What are the major advantages of internal iteration over external iteration?
how to handle exceptions in ejb?
Is simpledateformat safe to use in the multithreaded program?
What should I import for arraylist in java?
What do you understand by the term singleton?
Can a class have multiple superclasses?
What is method in java with example?
What is the use of parse function in java?
what is a thread pool in java and why is it used?
What is array pointers ?
Can a private method be declared as static?