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...

class test
{
private static void main(String []adsf)
{

}
}

explain me that the above code is error or exception

Answer Posted / sri

It will not generate any compile time error, but while
running the program it will generate the output as "main
method is not public".....

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does printwriter create a file?

918


What is the difference between scrollbar and scrollpane?

1051


How many times finalize method will be invoked? Who invokes finalize() method in java?

972


Why we do exception handling in java and how many types of exceptions are there?

1057


How do you find the absolute value?

1003


Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?

978


What is not object oriented programming?

880


Where are the local variables stored?

1022


Can we write multiple catch blocks under single try block?

1045


Differentiate between stringbuffer and stringbuilder in java.

984


Why do we need wrapper classes?

1024


What are variable arguments or varargs?

963


What's the default access specifier for variables and methods of a class?

1064


How does compareto method work?

919


What do you mean by jjs in java8?

951