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 does java not allow multiple public classes in a java file ?

Answer Posted / rahul

java does not support multiple public classes because of there are only one main method to define......and we can not have multiple main methods in a same class....and we know that java code will always save as the name of class name in which main method are define......

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is string an object?

1164


What is meant by class loader? How many types are there?

1323


What is the difference between int and integer in java?

1078


What is methodological framework?

1091


What is the use of join method?

1084


What is slash r?

1057


How to check if linked list contains loop in java?

953


When is the arraystoreexception thrown?

1079


How do you override a private method in java?

1027


Why java is used everywhere?

1056


What are the different collection views provided by maps?

1041


What are the rules for naming an array?

1105


What are data types in oop?

1075


What is the do while loop syntax?

1081


What is ascii format?

1031