Why only one Class is public in one file? Explain in
details. Thanks in Advance.
Answer Posted / ganesh slv
Sorry for the above..
its
If you declared a class as public, your file name should be
the same of your class name.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What is an arraylist in java?
How do you override a private method in java?
Differentiate between the constructors and methods in java?
If you do not want your class to be inherited by any other class. What would you do?
What is a boolean in java?
How can I debug the Java security exceptions and AccessControlExceptions?
What is the difference between method and means?
What is a condition in java?
What are java packages?
Can we override private method in java?
Can main() method in java can return any data?
If an object reference is set to null, will the garbage collector immediately free the memory held by that object?
What is the difference between an if statement and a switch statement?
What is run time allocation?
What is continuity of a function?