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

Why do we use bufferedreader?

1052


Explain illegalmonitorstateexception and when it will be thrown?

1157


How many arguments can be passed to main ()?

1043


Name container classes in java programming?

1174


What is main difference between variable and constant?

1083


what is the significance of listiterator in java?

1120


What is callablestatement? How you can call stored procedure to pass in parameter?

1068


What is thread pool in java with example?

1065


What is the use of math abs in java?

1067


What is methods and methodology?

1074


What are serialization and deserialization?

1316


What is static in java?

1165


Is string serializable in java?

1069


Why Java doesn’t support multiple inheritance?

1089


Explain aggregation in java?

1017