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 singleton service?

978


Does list maintain insertion order java?

922


What is the file extension for java?

1075


How is java created?

949


Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.

1324


What is gui programming?

1039


What is the right data type to represent a price in java?

960


what is the difference between yielding and sleeping? : Java thread

970


What is the difference between member variables initialization and assignment in a constructor?

1281


What is the difference between I ++ and ++ I in java?

982


What is the order of arraylist in java?

1140


a thread is runnable, how does that work? : Java thread

1020


In Java list the methods that can be overridden?

1013


How can we use primitive data types as objects?

961


What do you understand by weak reference?

1013