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

Write a java program to count the number of words present in a string?

985


What is purpose of keyword void?

1049


What is the advantage of functional interface in java 8?

998


Can you sort a string in java?

917


What is the difference between the final method and abstract method?

1056


What is the importance of main method in Java?

1058


What is difference between static class and normal class?

1121


What does java ide mean?

1148


How to disable caching on back button of the browser?

1085


What is tcp and udp?

1018


What is the file type?

1025


Explain the difference between comparator and comparable in java?

963


What are local variables?

1053


What happens if we override private method?

973


Is passing by reference faster?

996