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

Is space a character in java?

1006


Explain, java is compatible with all servers but not all browsers?

1060


Is it possible to override the main method?

979


How will you call an Applet using Java Script Function?

1028


What do you know about the garbage collector in java?

1087


What is the static block?

1067


I want to store more than 10 objects in a remote server? Which methodology will follow?

3201


Write a program in java to find the maximum and minimum value node from a circular linked list.

1079


What are accessor methods in java?

1006


How will you initialize an Applet?

1147


Is heap stored in ram?

962


Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls

1915


How do you sort arrays in java?

927


If an application has multiple classes in it, is it okay to have a main method in more than one class?

1013


Can we initialize the final blank variable?

1090