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

How a string is stored in memory?

971


How do you add an element to a set in java?

984


Is string a wrapper class?

977


What is the += operator called?

1003


What are java annotations?

1086


Difference between stack and queue?

1026


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

938


What is the difference between heap and stack memory?

1150


What is meant by local variable and instance variable?

989


Write code of any action class?

962


How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?

972


How to compare strings in java?

933


What is methodological theory?

940


How arrays are stored in memory in java?

946


What is finally and finalize in java?

1027