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
Can we override a variable in java?
What is the difference between exception and error in java?
State some situations where exceptions may arise in java?
What is java lang object?
Difference between overriding and overloading in java?
What are the main features of java?
What is the difference between an object-oriented programming language and object-based programming language?
What is java in layman terms?
What is arraylist e in java?
Is java call by value?
Using callable statement how can you pass out parameters, explain with example?
What is stack class in java?
What is Session reduplication and how its done?
What is an object’s lock and which object’s have locks?
What are the types of java?