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 does arraylist size increase in java?

1098


What is indexof in java?

986


Explain the difference between treeset and treemap in java?

958


What is a functional interface?

1004


What is the difference between java applets and applications?

1145


How to display arraylist values in java?

992


What is the effect of keeping a constructor private?

939


Can a abstract class be defined without any abstract methods?

986


What is a qms manual?

985


What’s the difference between unit, integration and functional testing?

1090


What language is an assembler written in?

981


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

1077


What is abstraction in java?

1062


What is the escape character in java?

965


What do you mean by exception handling in Java?

1273