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

throw: It is used to explicitly or manually throw an
exception.it can throw user defined exceptions.

throws:It tells that exception to b handled by calling
function. It tells caller that what exception that method
could throw.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the java virtual machine?

1139


How do you reverse sort in java?

999


Why use string handling in Java?

1074


Can we override constructor?

1083


How do you trim a space in java?

1024


Why put method is used?

1053


What language is an assembler written in?

1055


State two differences between C and Java.

1390


what is session in java?

1321


What is the difference between a window and a frame in java programming?

1197


What is the output of the below java program?

1094


What are java methods?

1191


What is java argument list?

980


What is immutable data?

1110


When will you define a method as static?

1137