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

How will you initialize an Applet?

1153


Can we have multiple classes in a single file?

983


What is hash table in java?

1028


What is the benefit of singleton pattern?

987


What’s the difference between callable and runnable?

1103


Why for each loop is used?

1013


What are the advantages and disadvantages of reference counting in garbage collection?

1030


What is a function argument in java?

1004


Explain where variables are created in memory?

1014


Why is it important to initialize a variable?

997


What are the different approaches to implement a function to generate a random number?

1061


How can we use primitive data types as objects?

961


What is byte value?

996


Explain differences between checked and unchecked exceptions in java?

1069


What do you mean by checked exceptions?

960