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

How are multiple inheritances done in Java?

1147


What is array class in java?

1079


What is meant by JVM? Is JVM platform independent or not?

1081


What is arguments in java?

1009


What is a data structure java?

1011


What is better- service oriented or batch oriented solutions?

2231


What is java util collection?

1095


Explain a situation where finally block will not be executed?

1044


How many types of operators are there?

986


What is identifier give example?

1042


How objects are stored in java?

1040


What are wrapper classes in java?

1080


Explain OOPs concept.

1094


What are the advantages of inner classes?

1032


Why do we need wrapper classes?

1074