Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Is java an ide?

964


Why is java so important?

1107


Which package has light weight components in java programming?

1130


Is 9 a prime number?

883


How is string immutable in java?

1026


What does indexof return in java?

977


Explain about procedural programming language or structured programming language and its features?

1088


Which is faster string or stringbuilder?

915


What is the difference between heap and stack memory?

1190


How to do encapsulation in java?

1046


Which class is the superclass for every class in java programming?

987


What is OOP's Terms with explanation?

1182


What is downcasting?

1098


What is classpath?

1002


Can we define a package statement after the import statement in java?

1060