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 / maduakor ngozi chukwukodinaka

When a method is declared as private, the program compiles
properly but it will give runtime error ?Main method not
public".

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java written in c?

918


Why is java not 100% pure oops?

1096


How does queue work in java?

944


How do you sort data in java?

910


What is the function of character?

1015


Explain about automatic type conversion in java?

1019


Does substring start with 0?

946


How many functional interfaces does java 8 have?

989


What is nested loop? What is dangling else condition in it?

1031


What’s the difference between constructors and other methods?

951


What is the meaning of flag day?

976


What do you mean by formatting?

947


How do you access command-line arguments within the code?

1015


Give any two differences between C++ and java.

1095


What is a treeset in java?

1000