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

what is object-oriented programming in java?

1105


What is the platform?

1053


What is assembly language?

1059


What are advantages and disadvantages of OOPs?

1193


How many characters is 16 bytes?

1046


A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

1058


Write a code to show a static variable?

1135


What is floor in java?

1080


Can inner class extend any class?

1097


Describe what a thread-local variable is in java?

1076


How do you implement singleton class?

1036


What is the need of transient variables in Java ?

1116


How do you include a string in java?

1055


Is list ordered in java?

1025


what is thread? What are the high-level thread states? : Java thread

1325