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
How do you delete a list in java?
What is integer valueof?
What is user defined exception in Java?
What checkbox method allows you to tell if a checkbox is checked?
What is increment in java?
What do bitwise operators do?
What is immutable data?
How can we make a class virtual?
How do I type unicode?
List types of storage classes in java?
What is the purpose of lambda expressions?
Can we call the constructor of a class more than once for an object?
What is scope & storage allocation of global and extern variables? Explain with an example
What is string substring?
What is jagged array in java?