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

THROW IS USED TO THROW AN EXCEPTION EXPLICITLY WHEREAS,THROWS INCLUDED IN THE METHODS DECLARATION PART WITH A LIST OF EXCEPTION THAT IT CAN POSSIBLE TO THROW.

THROW IS USED TO PASS CUSTOMER MESSAGE.AND THROW HANDLES
USER DEFINE EXCEPTION.
WHEREAS THROWS IS HANDLED BY JVM.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When will you define a method as static?

1102


What is a parameter example?

985


What variables are stored in stack?

990


How will you get the platform dependent values like line separator, path separator, etc., ?

1032


If goto and const is reserve words than why it is not work in java?

1974


Can we create a constructor in abstract class?

990


Discuss 2D arrays.

1056


What environment variables are required to be set on a machine in order to run Java programs?

1201


What is the difference between method and means?

1087


Why local variables are stored in stack?

986


What is the main use of generics in java?

997


What is concurrent hashmap and its features?

1102


What is difference in between java class and bean?

1102


Which types of exceptions are caught at compile time?

1039


What is the best way to findout the time/memory consuming process?

1032