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...

What classes of exceptions, thrown by a throw statement?

Answer Posted / niranjanravi

Syntax for throw is:
throw throwableinstance;
Here the throwableinstance must be an object of type
Throwable or sub-class of Throwable.Simple types such as
int or char as well as non-Throwable types such as String
or object can't be assigned to throw.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why java is used everywhere?

952


Why is java called the platform independent programming language?

949


What is the argument in java?

868


How do you allocate memory to object?

925


State two differences between C and Java.

1267


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

941


Explain the difference between hashmap and hashtable in java?

886


How do you create a method in java?

941


How long will it take to learn java?

938


Is a char always 1 byte?

931


explain copyonwritearraylist and when do we use copyonwritearraylist?

899


What is the use of static class?

1083


Explain the difference between the public, private, final, protected, and default modifiers?

984


Can we restart a thread already started in java?

1047


What is the maximum size of list in java?

910