Home Tutorialhelp Comment Why throw keyword is necessary???

 
 

Comment

saroj kumar panda
Why throw keyword is necessary???,
June 3, 2008 at 1:49 AM

Hi,

Pls tell me why throw keyword is useful if try-catch block can do the same work.

View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Core Java

throw Java Keyword
 

Java Tips and Examples

How to Throw Exceptions
 

Core Java

Java throw and throws Keyword Example
 

General

Java ?throw? Keyword
 

General

Exceptions in java
 

Core Java

Difference between throw and throws in java.
 

Java-Tutorials

Java Throw Built-in Exception
 

Java-Tutorials

Example to throw ArithmeticException in Java
 

General

Making Exceptions Unchecked - java tutorial,java tutorials
 

Java Interview Questions

EXCEPTIONS - Java Interview Questions
 

Java Interview Questions

exceptions
 

Core Java Tutorials

Using throw keyword in exception handling in Core Java
 

General

Java Exceptions Tutorials With Examples
 

Java Technology Tutorials

Java Exception - Handle Exceptions in Java
 

Java Technology Tutorials

Making Custom (User Defined) Exceptions
 

Programming Tutorials

The throw keyword example in java
 

Java Tips and Examples

Catching and Handling Exceptions
 

General

Catching Normal Exceptions
 

Java Beginners

exceptions in java - Java Beginners
 

General

What are Chained Exceptions?
 

Java Interview Questions

Java throw and throws
 

Java Beginners

Using throw in java method
 

Java Interview Questions

Java throw ,throws
 

Java Interview Questions

EXCEPTIONS-----1 - Java Interview Questions
 

Java Beginners

Core Java Exceptions - Java Beginners
 

Java Beginners

"compilation error " & "throw an exception" - Java Beginners
 

Programming Tutorials

Chapter 12. Exceptions
 

Java Interview Questions

Java exceptions
 

General

Exceptions in Java
 

JSP Servlet Questions

how to deal with exceptions in servlet
 

Servlet Interview Questions

How do I throw a 404 error from within a java servlet?
 

Java Interview Questions

How to solve the Hibernate Common Exceptions?
 

Java-Tutorials

Catching Exceptions in GUI Code - Java Tutorials
 

JSP Interview Questions

JSP handle runtime exceptions
 

Java-Tutorials

Different types of exception handling in Java
 

Java Beginners

interfaces,exceptions,threads
 

Java Beginners

Exceptions - Java Beginners
 

JSP Tutorials

Custom Exceptions
 

Programming Tutorials

Identify correct and incorrect statements or examples about application exceptions and system exceptions in entity beans, session beans, and message-driven beans.
 

Java-Tutorials

Exception Handling : Custom Exception
 

Java-Tutorials

Exceptions Rethrowing with Improved Type Checking
 

JSP Interview Questions

JSP handle run-time exceptions
 

Programming Tutorials

Identify correct and incorrect statements or examples about the client's view of exceptions received from an enterprise bean invocation.
 

SQL Question

throw exception in mysql trigger
 

Java-Tutorials

User Defined Exception In Java
 

Programming Tutorials

Given a list of responsibilities related to exceptions, identify those which are the bean provider's, and those which are the responsibility of the container provider. Be prepared to recog
 

General

Java Exceptions Tutorials With Examples
 

Java Beginners

Hi Friend ..Doubt on Exceptions - Java Beginners
 

JSP Tutorials

Use multiple catch statement in single jsp
 

Java Beginners

Throw,Throws, n try and Catch
 

Java Beginners

Throw,Throws, n try and Catch
 

Java Code Examples

Java User-defined Exception
 

RMI Questions

Exceptions in RMI - RMI
 

Java Beginners

java Exception handling - Java Beginners
 

Java Beginners

null pointer exceptions
 

JSP Servlet Questions

Exceptions - JSP-Servlet
 

Core Java

throws Java Keyword
 

Core Java

try Java Keyword
 

JSP Tutorials

Multiple try catch
 

JSP Tutorials

Nested try catch
 

JSP Servlet Questions

data retrival from database throw simple jsp..
 

Java Interview Questions

Core Java - Java Interview Questions
 

Java Beginners

Java Exception - Java Beginners
 

Java Beginners

final keyword
 

Java-Tutorials

Unhandled Exception in Thread
 

Java Beginners

Use of assert keyword in Java - Java Beginners
 

Java Interview Questions

why using static keyword
 

Java Interview Questions

Core Java
 

General

SCJP Module-6 Question-16
 

General

Example to show Array exception in java
 

Java Beginners

Return keyword
 

Java Beginners

core java - Java Beginners
 

EJB Questions

new to EJBs exceptions while excuting Client code - EJB
 

General

Java Glossary Term - I
 

Java Tips and Examples

How to use this keyword in java
 

Java Beginners

Exception Handling - Java Beginners
 

Hibernate Questions

why crieterias are importent in hibernate?
 

Core Java

The void keyword
 

Core Java

The volatile keyword
 

Java-Tutorials

Java Programs
 

Java Beginners

Setup file - Java Beginners
 

iPhone

Exception handling in Objective-C
 

Java Interview Questions

java doubt
 

Java Beginners

JAVA
 

Java Beginners

JAVA
 

Java Beginners

JAVA
 

Java Interview Questions

Java Exception
 

Java Beginners

java
 

Java Interview Questions

Java keyword
 

General

static Java Keyword
 

Core Java

The interface keyword
 

General

The null keyword
 

Java-Tutorials

assert In Java
 

Java Beginners

Exception Handling
 

JSP Tutorials

Throwing an Exception
 

Java Interview Questions

java - Java Interview Questions
 

Java Beginners

java
 

Core Java

Java ioexception
 

Core Java

Keyword - this
 

General

The new keyword
 

Advertisements Advertisements
 

 

 

DMCA.com