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

What is a arraylist in java?

1011


What is concurrent hashmap and its features?

1037


Difference between stack and queue?

1032


What is the purpose of using java.lang.class class?

977


What is a class instance variable?

1070


What is the use of System class?

1113


What are keywords give examples?

1009


What is composition in java?

1238


What is a locale?

1102


How variables are declared?

935


What are the object and class classes used for?

1011


From the two, which would be easier to write: synchronization code for ten threads or two threads?

1015


What is the use of hashmap in java?

1035


Where local and global variables are stored?

1052


Why local variables are stored in stack?

936