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
Difference between method overloading and method overriding in java ?
Define jre i.e. Java runtime environment?
What is a stringbuilder?
How strings are created in java?
How do you input a string in java?
What is linkedlist in java?
What are measurable parameters?
Do I need java for windows 10?
What is qualitative variable?
What are checked exceptions?
What is the difference between multiple processes and multiple threads?
how to create daemon thread in java?
How does java pattern compile work?
Explain abstract class in java?
How does enum work in java?