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

Throw :- It is possible for your program to throw an
exception explicitly, using the throw statement.

Throws :- If a method is capable of causing an exception
that it does not handle, it must specify this behavior so
that callers of the method can guard themselves against that
exception.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When do I need to use reflection feature in java?

1080


What is the benefit of singleton pattern?

985


What are methods and how are they defined?

1210


What is java instanceof operator?

1043


What is hashtable and explain features of hashtable?

989


Explain garbage collection in java?

981


Is it safe to install java on my computer?

1141


How objects are stored in java?

1033


What is purpose of keyword void?

1049


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread

1033


Is minecraft 1.15 out?

977


How do you remove duplicates in java?

1019


What is an association?

985


What is set in java?

1045


What is tochararray in java?

937