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

What is an iterator interface in java programming?

959


What happens if an exception is not handled in a program?

1099


What is hashing in java?

1038


How do you add an arraylist to an array in java?

977


What is the method overriding?

1082


When throw keyword is used?

1066


Does java support multiple inheritances?

1020


Explain java coding standards for classes or java coding conventions for classes?

1123


What is a control variable example?

1013


What about main thread in java?

1118


What is the latest version of java?

1128


What is string intern in java?

1020


What is supplier in java?

1002


What is difference between filereader and bufferedreader?

954


Can an unreferenced object be referenced again?

1191