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 difference between throw and throws in exception
handling.

Answer Posted / archana

throws is to handle exception by the system itself
whereas throw used by the user to handled the exception

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is null mean in java?

1028


What is difference between next () and nextline () in java?

937


Write an algorithm for quick sort?

967


State the difference between creating string as new () and literal.

1016


What is the difference between replace and replace all?

944


Are strings immutable in java?

919


Does substring create a new object?

945


Is boolean a wrapper class in java?

999


What's the purpose of using break in each case of switch statement?

928


Program to Find the second largest element in an array.

1109


What Is Query Throttling in java?

956


Which api is provided by java for operations on set of objects?

1396


Which package is used for pattern matching with regular expressions?

1055


What is internal variable?

963


2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?

2238