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
Which containers use a flowlayout as their default layout in java programming?
How concurrent hashmap works?
State differences between C and Java?
What is the difference between length and length() method in java?
What about instanceof operator in java?
What are the two environment variables that must be set in order to run any java programs?
How many ways can we create the string object?
What is a function in programming?
Is 0 a real number?
What is the difference between heap memory and stack memory?
How many bytes is 255 characters?
What is the replace tool?
Can a variable be local and static at the same time?
explain multi-threading in java?
Which method returns the length of a string?