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 / yogesh gandhi

Wrong Vani.

The output of the program is

C:\>javac abc.java

C:\>java abc
Main method not public.

Is This Answer Correct ?    72 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you stop a thread in java?

1001


What is java object name?

940


What is math floor in java?

883


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

960


How do you use compareto in java?

923


how to write a server program and sending the mails to the server using smtp protocol please help me

2004


How do you write a scanner class in java?

953


When should the method invokelater() be used?

972


What is map and hashmap in java?

1026


Which is a valid identifier?

1099


How does sublist works in java?

899


What is a nested class?

1055


What is intern method in java?

1024


When parseint method can be used?

891


Why can we not override static method?

1063