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 / visweswara rao

throw:- System generated exceptions are automatically
thrown by the Java run-time system.To manualy throw the
exception,we use the keyword throw

throws:- Any exception that is thrown out of a method must
be specified as such by a throws clause

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the final class modifier?

1039


how can you take care of mutual exclusion using java threads? : Java thread

1046


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

1274


What is meant by object?

1002


what is comparable and comparator interface?

989


What is the use of protected in java?

1025


What do you mean by collectors in java 8?

933


Which oo concept is achieved by using overloading and overriding?

1005


What is the difference between checked exception and unchecked exception?

1015


What do u mean by variable?

1049


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

980


What is parsing in java?

959


What is e java?

1099


Is it possible to specify multiple jndi names when deploying an ejb?

994


What are the different types of constructor?

991