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

throw will throws the exception,
and throws declares that the function will throw an exception
you should catch all every functions throwing and exception
u declare it or catch it

Is This Answer Correct ?    29 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?

1060


What is tree node in java?

960


Can we overload the constructors?

993


What is a variable analysis?

1088


What is the difference between access specifiers and access modifiers in java? 16

997


What is Major and importance difference between for and foreach loop ?

1145


Java is Pass by Value or Pass by Reference?

1041


What is the use of http-tunneling in rmi?

1051


What is considered an anti pattern?

930


Is singleton class immutable?

965


What do you mean by constant time complexity?

1236


How does regex work?

959


What are the differences between wait() and sleep()?

1014


When the constructor of a class is invoked?

1029


What are register variables what are the advantages?

899