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

Throw keyword can be used by a program to throw exceptions
explicitly.the execution of the current block stops
immediately after the throw statement.
A method should declare that it can cause an exception and
expects its caller handle or re-throw the exception.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

does java support pointers?

990


Is a char always 1 byte?

986


How do you convert bytes to character in java?

996


What are the different types of inner classes?

1036


Where is singleton pattern used?

993


What is number data type in java?

1011


What is difference between static class and normal class?

1114


Can memory leak in java?

1033


How many bits is a 64 bit byte?

1078


What is static and final keyword in java?

1020


What is array length in java?

962


Who is founder of java?

995


How are this() and super() used with constructors in java programming?

1061


List the three steps for creating an object for a class?

966


What is a lock or purpose of locks in java?

1022