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

Which browsers work with java?

1110


What is gc()?

1133


How do you reverse sort a list in java?

989


Why main() method is public, static and void in java ?

1138


Explain the significance of class loaders in bootstrap?

1011


Why heap memory is called heap?

1093


How many java versions are there?

1115


What is the memory leak in java?

1096


Difference between final and effectively final ?

1172


Why main function is static?

1310


what is singleton class in java?

1109


What is string pool?

1208


What are synchronized methods and synchronized statements in java programming?

1068


What is meant by memory leak?

1153


What is __ init __ functions?

1193