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

What does the “final” keyword mean in front of a variable? A method? A class?

1000


What is java and why do we need it? Explain

1139


what is the difference between a threads start() and run() methods? : Java thread

1014


Explain wait() method of object class ?

1228


What is an infinite loop? How infinite loop is declared?

1111


Explain about member inner classes?

1101


how would you implement a thread pool? : Java thread

920


What is the difference between abstraction and encapsulation?

1049


What is meant by structural programming?

1021


Can we change the value of static variable?

961


What are static methods?

1053


What is the default value of local and global variables?

1097


Can memory leak happen java?

1007


Explain about the interpreter in java?

1058


What is an class?

1037