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

When throws keyword is used?

1002


What are assembly attributes?

1009


What is difference between stringbuffer and string?

961


Does unicode support all languages?

1034


How do you check if a number is a perfect square?

993


What do you mean by byte code?

1006


Can we have multiple catch block for a try block?

1019


What class of exceptions are generated by the java run-time system?

1190


What is a ternary operator in java? What is an interface?

1001


What is an object in java and how is it created?

1057


What is the epoch date?

1023


What are checked exceptions?

1035


How hashmap works in java?

1048


Why are global variables used?

1022


What does this () mean in constructor chaining concept?

1125