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 / janardhan

In an aplication public class is main class with main()
method as entry point

java compiler allows only one public class in file

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Enlist diffrent types of inheritance supported by java?

858


What is the main method java?

968


What is string example?

986


What is the difference between serializable and externalizable interfaces?

1025


What do you mean by singleton class in java?

855


How concurrent hashmap works?

1121


How do you do absolute value in java?

923


Is intellij better than eclipse?

1023


What is data type in computer?

917


Why java doesn’t support multiple inheritances?

960


What is immutability in java?

1030


How many types of array are there?

952


How to add menushortcut to menu item?

945


What’s meant by anonymous class?

1019


what is meant by HQL?

1011