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 / amit kumar chaubey

If the main function is made private...it will compile
Sucessfully...and at the time of execution...it will
execute successfully...but desired result will not be
obtained. After execution..folowin message will be printed:
Main method not public.

Is This Answer Correct ?    25 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should a function throw an exception?

990


When should you use arraylist and when should you use linkedlist?

871


What are advantages of using Java?s layout managers than windowing systems?

2315


What is the final class modifier?

962


How to avoid memory leak in java?

1075


what is the difference between thread and runnable types? : Java thread

945


What is the major difference between linkedlist and arraylist?

962


What is parsing a sentence?

991


Explain implementation and how is it different from conversion?

1017


Is void a data type?

899


What is the difference between a window and a frame in java programming?

1079


Can an object subclass another object?

1016


What are the two ways to create a thread?

945


What is the difference between this() and super() in java?

977


What is natural ordering in java?

895