Why to give the file name same as the public class name in
java?
Answer Posted / mahesh
First of all, it only has to be the same when the class is
public. And there is no explicit reason for that, it's just
a convention that came along with old versions of java and
people got used to it... They say it's because of the
limited capabilities of the compiler to compile
dependencies.
| Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
How do you reverse a string in java without using string buffer?
What does this mean java?
What all methods are used to prevent thread execution ?
How arrays are stored in memory in java?
Name some OOPS Concepts in Java?
What are the different types of sorting in java?
What is the relationship between clipping and repainting under awt?
What is difference between throw and throws ?
What is charat ()?
What are the differences between path and classpath variables?
Explain the concept of hashtables?
What is difference between add() and addelement() in vector?
Mention some interfaces implemented by linked list in java.
Differentiate between static and non-static methods in java.
What are java threads?