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

throws is used to throw an exception from the method
without handling that exception where as 'throw' is used
to throw the exception to catch block and handle it.

Is This Answer Correct ?    123 Yes 79 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know why doesn't the java library use a randomized version of quicksort?

994


What do heavy weight components mean in java programming?

1000


Is space a character in java?

1066


What is method overloading in JAVA? Why is it not present in C ?

1147


Why java is call by value?

1084


Is age discrete or continuous?

1194


Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain

1974


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

1054


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

1239


How do you compare characters in java?

1050


Can a class be defined inside an interface?

1083


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

1058


When should we create our own custom exception classes?

1060


How do you sort a set in java?

969


Is hashmap thread safe?

1058