Why only one Class is public in one file? Explain in
details. Thanks in Advance.
Answer Posted / janardhan
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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
Enlist diffrent types of inheritance supported by java?
What is the main method java?
What is string example?
What is the difference between serializable and externalizable interfaces?
What do you mean by singleton class in java?
How concurrent hashmap works?
How do you do absolute value in java?
Is intellij better than eclipse?
What is data type in computer?
Why java doesn’t support multiple inheritances?
What is immutability in java?
How many types of array are there?
How to add menushortcut to menu item?
What’s meant by anonymous class?
what is meant by HQL?