Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Dout in throws

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I HAVE DOUTE IN THROWS.

IS THROWS IS THE KEYWORD THAT IS USE FOR THROW THE EXCEPTION AS PER THE USER. (ie) FOR THIS TYPE USER CAN ITSELF CAN DEFINE THE CLASS AND METHOD FOR THE EXCEPTION.

FOR THIS THROWS SYSTEM CAN THROW ANY EXCEPTION AS LIKE "throw" DURING RUN TIME USING THE PREDEFINE CLASSES AND METHODS.

WEATHER THE THROWS HAVE ANY PRE DEFINE CLASS OR METHOD

kethare@sify.com
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PLEASE DO NOT USE ALL CAPITALS. IT LOOKS LIKE YOU ARE SHOUTING.

I don't understand what your question is. The "throws" keyword is used in method declarations to indicate what checked exceptions the method might throw.

See the tutorial: Lesson: Handling Errors Using Exceptions
 
He's my best friend. Not yours. Mine. You can have this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic