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 / thiru

The default signature should not be altered. If any changes, at run time "Class xxx does not have main method" exception will be thrown. But compilation will not give any exception.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to read and write image from a file ?

1044


Write a java program for binary search?

1059


What is a Transient Object?

1085


What is static method with example?

1173


Explain the init method?

988


What is initial size of arraylist in java?

1054


What about member inner classes?

1094


What is java argument list?

938


Can private class be inherited in java?

1027


How to find the given number is a prime number or not by getting input from the user

1096


What are the drawbacks for singleton class?

1015


Explain the difference between the public, private, final, protected, and default modifiers?

1042


Is it possible to use string in the switch case?

1041


Where is const variable stored?

934


How hashmap increases its size in java?

989