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 is difference between throw and throws in exception?

Answer Posted / ritesh

Throw :- It is possible for your program to throw an
exception explicitly, using the throw statement.

Throws :- If a method is capable of causing an exception
that it does not handle, it must specify this behavior so
that callers of the method can guard themselves against that
exception.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is args length in java?

1120


Define an enumeration?

981


Why isn’t there operator overloading?

1014


Write code to implement bubble sort in java?

948


What is volatile data type?

951


Give any two differences between C++ and java.

1087


How do you identify independent and dependent variables?

936


What type of value does sizeof return?

955


What are pass by reference and pass by value?

931


What is continuity of a function?

1024


Difference between ‘is-a’ and ‘has-a’ relationship in java?

948


when you will synchronize a piece of your code? : Java thread

962


what is the difference between thread and runnable types? : Java thread

950


How does map works in java?

943


how can i use a nonsynchronized hashtable?

2530