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
How many arguments can be passed to main ()?
What are peerless components?
How can we make sure main() is the last thread to finish in java program?
What is a pattern what is an anti pattern?
What is the use of a copy constructor?
What is parse method?
List implementations of list interface?
What is illegal identifier in java?
What is synchronization and why is it important in java programming?
Explain a situation where finally block will not be executed?
What are the four integer types supported by java?
What do you understand by weak reference?
What is the difference between static (class) method and instance method?
What are scalar data types?
What string is utf8?