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

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 ?    12 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between an Interface and an Abstract class?

1172


Define how objects are stored in java?

1059


Can we have any code between try and catch blocks?

988


What is string variable?

1048


Why arraylist is not synchronized in java example?

1060


What is difference between call by value and call by reference?

995


What is jit compiler ?

977


What is instance synchronization?

1045


What are exception handling keywords in java?

1034


What is the use of optional ?

1033


What is garbage collection? What is the process that is responsible for doing that in java?

1103


What is string subsequence method?

1121


What is an example of a boolean?

1055


What is the locale class in java programming?

1079


What restrictions are placed on method overriding in java programming?

1002