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 9 released?

1007


Is null a value?

1040


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

1243


What is a string what operation can be performed out with the help of a string?

1052


How do you compare characters in java?

989


Explain enumeration in java?

1008


How to display names of all components in a Container?

2940


Is space a character in java?

1009


How do you write methodology?

986


What does string mean in java?

1107


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

1240


Explain the use of sublass in a java program?

1025


What is return keyword in java?

1053


What is abstraction in java?

1091


Why we use multi threading instead of multiprocessing?

1067