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 / bhargava

Code will throw exception. Because usually every stand
alone program execution should start with main method. It
should be public other wise this method doesnt exposed to
out side to run.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hasnext in java?

1018


What is arrays fill in java?

1012


Where can I find jdk in my computer?

966


What is covariant return type?

1115


How do you convert string to int in java?

1079


How do I stop concurrentmodificationexception?

1032


Why are arrays useful in java?

1031


What are basic keywords?

1040


Is arraylist dynamic in java?

994


Is namespace same as package in java?

985


Can we assign integer value to char in java?

1033


What are the types of java?

1106


Why is string builder not thread safe?

1065


What is jagged array in java?

1087


Where is singleton pattern used?

993