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 the difference between the prefix and postfix forms of the ++ operator?

1021


Difference between class#getinstance() and new operator ?

1205


Why bytecode is called bytecode?

1204


Why pointers are not used in java?

1125


Explain numeric promotion?

1105


What are different ways of object creation in java ?

1076


What is binary tree in java?

1054


What 4 doubled?

982


What is an interface in java?

1052


What is difference between calling start() and run() method of thread?

1129


What is jdbc api?

1007


can any body body expalin best definitions & best real time exaples for opps concepts.

2263


What is meant by inheritance and what are its advantages?

1101


What are the important features of Java 10 release?

983


What is class and object in java?

1005