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

What are thread local variables?

1065


What is the difference between procedural and object-oriented programs?

938


Explain about interrupt() method of thread class ?

1072


What about main() method in java ?

980


Is string a class?

978


Why singleton is not thread safe?

950


Can we cast any other type to boolean type with type casting?

899


How do you convert bytes to character in java?

952


Can a private method be declared as static?

973


What are the two categories of data types in the java programming language?

926


In how many ways we can create threads in java?

1147


Is java call by value?

1035


Is multiple inheritance supported by java?

929


Where is the singleton class used?

983


What are the 4 types of characters?

956