Why to give the file name same as the public class name in
java?
Answer Posted / akanksha bansal
So that ,that class is accessible from some other class/file
as well
Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
Difference between method overloading and method overriding in java ?
Why we override equals() method?
What are scriptlets?
Can we make constructors static?
What are byte codes?
What are the two types of exceptions in java? Which are the differences between them?
What is casting in java programming?
Is java platform independent?
Explain about instanceof operator in java?
Explain the init method?
What does main method?
Can one thread block the other thread?
Does java support Operator Overloading?
What is unsigned char?
Why do we need data serialization?