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

Is it possible to specify multiple jndi names when deploying an ejb?

996


How listener identify that the event came from a particular object?

1995


How many ways can we create singleton class?

969


Why call by value prevents parameter value change?

1076


why an outer class cannot be declared as private?

4320


What is anagram number?

951


What are java threads?

1131


How to create a base64 decoder in java8?

1057


do I need to use synchronized on setvalue(int)? : Java thread

1010


Can a constructor be private and how are this() and super() method used with constructor?

1004


What is mutable object and immutable object?

1128


Where is const variable stored?

934


What is join () in java?

964


What is final keyword?

1161


What is polymorphism and what are the types of it?

993