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

What is the difference between delete and delete[]

1651


Are static members inherited to sub classes?

1187


Explain yield() method in thread class ?

1118


Can we have any other return type than void for main method?

999


Should you use singleton pattern?

995


Why singleton class is used in java?

1197


What is bool mean?

1141


Why inputstreamreader is used in java?

1057


what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????

2317


Compare java and python.

1034


How objects are stored in java?

1091


Is sizeof a keyword in java programming?

1121


What are basic data types?

1171


Can list contain null in java?

1144


What is java full form?

1099