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
Can a main method be declared final?
Can a list be null in java?
What is the equal sign?
What are the benefits of operations in java?
Can we have a try block without catch block?
What are implicit objects in java?
How do you check if a character in a string is a digit or letter?
Explain how can you debug the Java code?
How do you reverse a word in java?
What things should be kept in mind while creating your own exceptions in java?
Can anonymous class have constructor?
What do you mean by object?
What is a boolean expression in java?
In how many ways we can do exception handling in java?
How to perform linear search in java?