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

What is return in java?

960


Name few "optional" classes introduced with java 8 ?

1129


What are java threads?

1118


Is 0 a prime number?

985


What do you mean by local variable and instance variable?

939


How do you convert string to int in java?

1065


What are the procedures?

1055


List some important features of java 10 release?

1065


Can you change array size in java?

957


How do listeners work?

1027


What does exclamation mean in java?

1087


What is string in java with example?

1012


According to java operator precedence, which operator is considered to be with highest precedence?

1079


How do you implement tree mirroring in java?

1059


What is skeleton and stub? What is the purpose of those?

1107