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

Which is bigger float or double?

971


Can we define private and protected modifiers for variables in interfaces?

1077


What is the difference between conversation & casting?

1040


What is the difference between iterator and enumeration ?

1003


Explain differences between collection api and stream api?

1178


Is array passed by reference in java?

1025


How do you use compareto in java?

969


What is meant by data hiding in java?

1150


Why do we create public static method in java?

1110


What is the replace tool?

1163


Explain methods specific to list interface?

971


What is the meaning of I ++ in java?

1178


Explain java coding standards for interfaces?

1107


What is the difference between equals() and?

1191


What is string english?

1015