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

What is anonymous inner class?

1083


Is there any sort function in java?

1048


Explain about sets?

1023


Can long be null in java?

1019


What technique is carried out to find out if a particular string is empty?

1015


Why java is said to be pass-by-value ?

1043


What is a concrete classes? Is Java object class is concrete class?

982


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

1071


How to perform quicksort in java?

1116


Is set thread safe java?

923


Can array grow dynamically in java?

981


Can an arraylist be empty?

1053


Define how does a try statement determine which catch clause should be used to handle an exception?

1161


What is a method in coding?

1055


What is the difference between multitasking and multithreading in Java

1185