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

Hi Mahendra,
This is OK that, compiler allowed only one class as public
per file. But my question is, why compiler allowed only one
class as a public in one file, why not more then one???

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is autoboxing in java?

1009


How do you create a method in java?

940


What is rmi and steps involved in developing an rmi object?

989


How many bytes is a url?

933


What do you mean by inner class in java?

1009


What 5 doubled?

929


Can we force garbage collector to run ?

999


I want to persist data of objects for later use. What’s the best approach to do so?

872


What is autoboxing and unboxing?

946


How to split arraylist elements in java?

1098


What is Java Shutdown Hook?

1114


Explain different ways of creating a thread. Which one would you prefer and why?

979


When should the method invokelater() be used?

970


What are locale settings?

933


Explain the importance of finally block in java?

904