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...

What happens when a main method is declared as private?

Answer Posted / srinivasa

JVM is also a program. If main() is declared as privateit
is not available outside of that class . So JVM through the
exception.

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does java return by reference?

951


Can you write a java class that could be used both as an applet as well as an application?

908


What is class level lock ?

971


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

2214


Can we define a package statement after the import statement in java?

1017


What about abstract classes in java?

1013


Can a constructor be protected?

1028


What is a char in java?

976


What does jre stand for?

1000


What is mean by encoding?

1020


What are the important features of Java 9 release?

949


Is there a case when finally will not execute?

942


What is a java list?

1041


What is increment in java?

918


What is difference between fail-fast and fail-safe?

1174