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

Can You Have Virtual Functions In Java?

1127


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

970


What is the difference between preemptive scheduling and time slicing?

1055


What is files manifesting?

2192


How java is similar to c?

1031


Why arraylist is not synchronized in java example?

1039


Can you override private or static method in java?

962


What is map in java?

985


What are 5 boolean operators?

1162


What are some alternatives to inheritance?

1080


Difference between object instantiation and construction ?

1051


I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com

1691


How do you control extraneous variables?

905


What is int argc char * argv?

1135


When should I use stringbuffer?

998