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 the difference between array and array list in java?
What are class members by default?
What is anagram number?
What are the advantages of inner classes?
What is the final keyword in java?
What is memory leak and how does java handle it?
Why parameters should be passed by reference?
How garbage collection is done in java?
Explain the difference between intermediate and terminal operations in java8?
What is a substitution variable?
What is re-factoring in software?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
Which is bigger double or float?
describe synchronization in respect to multithreading? : Java thread
What is the difference between heap and stack memory?