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 the difference between throw and throws?

Answer Posted / surender kannuri

throws clause is used to whenever programmer doesn't want to
handle exception.throws it out of method.

throw is used whenever programmer wants to handle exception
explicitly by using catch blocks.

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 static method?

1021


Difference between arraylist and vector.

1058


Why java is a platform independent? Explain

1008


How do you initialize an arraylist in java?

977


Is empty in java?

994


What is anti pattern in cyber security?

958


Which methods cannot be overridden in java?

925


We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.

1885


What is double in java?

932


Which method must be implemented by all threads?

1197


Can you inherit a constructor java?

1021


Can a source file contain more than one class declaration?

914


What is the common usage of serialization?

1070


Can a constructor have different name than a class name in java?

1086


Which container method is used to cause a container to be laid out and redisplayed in java programming?

1056