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's the access scope of protected access specifier?

1043


Can you explain the usages of class.forname()?

1074


What is variable and rules of variable?

1027


Why do we need autoboxing in java?

1009


What is constructor and its types?

1158


Explain what do you mean by functional overloading in java?

1025


What is lexicographically smallest string?

1074


What is locale in java?

1025


When should I use singleton?

1045


What are measurable parameters?

1086


What data type is string java?

969


How do you calculate square roots?

1173


Is vector thread safe in java?

1062


worst case complexities of Quick sort and Merge sort.

1037


Is arraylist an object in java?

1181