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

Is .net better than java?

1074


How to perform merge sort in java?

1121


Explain about interthread communication and how it takes place in java?

1079


What is java reflection api?

1059


Can we create a constructor in abstract class?

1039


how to create constants in java?

1129


What are the types of methods in java?

1181


What are the advantages of encapsulation in java?

1051


What are the two ways in which thread can be created?

1107


How do you override a variable in java?

1238


What is the difference between heap memory and stack memory?

1122


What is the console in java?

1213


Can we create a class inside a class in java?

1150


What is the use of object and class classes?

1085


What is nested interface?

1052