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

How do you delete a list in java?

920


What is integer valueof?

1061


What is user defined exception in Java?

1031


What checkbox method allows you to tell if a checkbox is checked?

953


What is increment in java?

927


What do bitwise operators do?

956


What is immutable data?

1002


How can we make a class virtual?

1070


How do I type unicode?

918


List types of storage classes in java?

1084


What is the purpose of lambda expressions?

1009


Can we call the constructor of a class more than once for an object?

1049


What is scope & storage allocation of global and extern variables? Explain with an example

1002


What is string substring?

1112


What is jagged array in java?

1022