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

Can an interface have a constructor?

896


What is the tradeoff between using an unordered array versus an ordered array?

1160


What are class types in java?

1026


What is a line break?

971


What are identifiers in java?

1040


What is meant by stack and queue?

989


How java uses the string and stringbuffer classes?

1000


Differentiate between a constructor and a method? Can we mark constructors final?

1127


What is udp in java?

929


How do you start a new line in java?

923


What are the differences between stringbuffer and stringbuilder?

997


Why bytecode is called bytecode?

1092


What is an immutable class?

1077


What is a boolean flag in java?

959


Can this keyword be used to refer static members?

974