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 / 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


Please Help Members By Posting Answers For Below Questions

How many bytes is a url?

991


Why deletion in linkedlist is fast than arraylist?

1105


Does importing a package imports its sub-packages as well in java?

978


Can vector have duplicates in java?

957


What is role of void keyword in declaring functions?

1055


What is a java list?

1123


How does multithreading take place on a computer with a single cpu?

1014


What is the use of arraylist in java?

1101


What does %d do in java?

1055


What do you meant by active and passive objects?

1088


What is the access scope of a protected method?

1034


Implement two stacks using a single array.

1073


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

983


How to sort an array in java without using sort method?

881


What is the range of a character variable?

995