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

Write a program to print 15 random numbers using foreach of java 8?

932


What is the difference between a switch statement and an if statement?

1088


What is the difference between an object-oriented programming language and object-based programming language?

999


What is super in java?

990


Why runnable interface is used in java?

1129


What are different types of arrays?

1014


what is ststic with example

2043


What is null data type?

1095


Why does java have different data types for integers and floating-point values?

1009


What a static class can contains?

1154


how to create multithreaded program? : Java thread

944


what is the difference between Object Based Language and Object Oriented Language?

1030


What is Java Package and which package is imported by default?

1090


How to create an immutable class?

1101


How do I know if java is installed?

1082