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

When do we use hashset over treeset?

998


What is main in java?

1079


Explain the access modifiers for a class, method and variables?

1100


What is a predicate method?

965


What is the use of runnable interface?

1092


Explain the difference between collection api and stream api in java8?

926


Is minecraft java edition free?

1078


Is a class an object?

953


What is predicate in java?

1015


Java.util.regex consists of which classes?

949


Explain public static void main(string args[]) in java.

945


Why do we need variables?

933


What methods are used to get and set the text label displayed by a button object?

973


What are the two types of java programming?

1011


What is the difference between yielding and sleeping?

1048