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 the difference between throw and throws?

Answer Posted / kashi

thow is used to explicitly transfer the userdefined
exception class object from the function to the calling
place.
thows is used to mention or indicate to the compiler as
well as the enduser, that a particular function is proven
to generate exception class object and those objects are
not handled in the function itself.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a parameter in simple terms?

1069


Can sleep() method causes another thread to sleep?

1078


Can we declare an interface as final?

1110


What is java virtual machine? Explain

1078


design an lru cache in java?

1044


What is difference between next () and nextline () in java?

1039


Can a class have more than one object?

1047


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

1139


What are 3 boolean operators?

1049


What does this () mean in constructor chaining concept?

1199


Difference between predicate, supplier and consumer ?

1108


Explain the use of shift operator in java. Can you give some examples?

1033


What is a treeset class?

1060


What is the difference between throw and throws in java?

1162


What is array size in java?

1017