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 does arraylist size increase in java?
What is indexof in java?
Explain the difference between treeset and treemap in java?
What is a functional interface?
What is the difference between java applets and applications?
How to display arraylist values in java?
What is the effect of keeping a constructor private?
Can a abstract class be defined without any abstract methods?
What is a qms manual?
What’s the difference between unit, integration and functional testing?
What language is an assembler written in?
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
What is abstraction in java?
What is the escape character in java?
What do you mean by exception handling in Java?