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 / gourav shivhare

The throw keyword denotes a statement that causes an exception to be initiated. It takes the Exception object to be thrown as an argument. The exception will be caught by an enclosing try-catch block or propagated further up the calling hierarchy. The throws keyword is a modifier of a method that denotes that an exception may be thrown by the method. An exception can be rethrown.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is static a keyword in java?

980


What are pass by reference and pass by value?

986


What is the use of http-tunneling in rmi?

1051


What is the difference between int and integer in java?

1027


You're given a Boolean 2D matrix, can you find the number of islands?

1099


How big is a gigabyte?

1044


Can you use this() and super() both in a constructor?

981


How an object is serialized in java?

988


Can a class have more than one object?

994


Is it possible to compare various strings with the help of == operator?

991


How many boolean functions are there?

961


How do you use wildcards?

1054


java program with complete 4 oops concepts implemented example

3155


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

9206


What is main difference between variable and constant?

1036