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 only one Class is public in one file? Explain in
details. Thanks in Advance.

Answer Posted / ganesh slv

Sorry for the above..
its

If you declared a class as public, your file name should be
the same of your class name.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between array and array list in java?

1230


What are class members by default?

1077


What is anagram number?

946


What are the advantages of inner classes?

1024


What is the final keyword in java?

1425


What is memory leak and how does java handle it?

983


Why parameters should be passed by reference?

968


How garbage collection is done in java?

1048


Explain the difference between intermediate and terminal operations in java8?

1111


What is a substitution variable?

1025


What is re-factoring in software?

1050


How to display all the prime numbers between 1 and n (n is the number, get the input from user)

978


Which is bigger double or float?

966


describe synchronization in respect to multithreading? : Java thread

923


What is the difference between heap and stack memory?

1192