Error and Exception in Java

Error and Exception in Java

Hi,

What is the base class for Error and Exception?

Thanks
View Answers

October 5, 2010 at 5:34 PM

hello.
Throwable is the super class of Error and exception
Error dont have any base class. RuntimeException is the base calss of Exception class.

Throwable
_____|_________________
| |
Error Exception
| |
RuntimeExce(Unchecked) Checked(IoExce, Sql Exce etc)

Thanks









Related Tutorials/Questions & Answers:
Error and Exception in Java - Java Beginners
Error and Exception in Java  Hi, What is the base class for Error... of Error and exception Error dont have any base class. RuntimeException... _____|_________________ | | Error Exception
"compilation error " & "throw an exception" - Java Beginners
"compilation error " & "throw an exception"  Hello. I have...=sql2.executeUpdate("Select * From Publishers"); a. Will throw an exception b. Will result in compilation error c. Will return the number of rows retrieved from
Advertisements
Difference between error and exception ????????
Difference between error and exception ?  Can we handle a error in java if yes than give an code of an example? Difference between error and exception handling.......   Exceptions are things you can create/throw
exception error inservlet
exception error inservlet  Hi,i got the error as..below..wat could be the possible mistake ?THANK YOU!!! type Exception report message description The server encountered an internal error () that prevented it from fulfilling
Error:No Class Found Exception:org.postgresql.driver
Error:No Class Found Exception:org.postgresql.driver  Error:No Class Found Exception:org.postgresql.driver while connecting JDBC With PostgreSQL 8.4 I m running My Program with java 6.0
Error n Exception
Error n Exception  Difference between errors and exceptions
Exception Handling-Error Messages in Program
Exception Handling-Error Messages in Program  Sorry about the first code block: import java.util.*; class GradeException extends Exception{ public GradeException(String s){ System.out.println(s); } } ----jGRASP exec: javac -g C
Exception Handling-Error Messages in Program
Exception Handling-Error Messages in Program  Hi Friend, I am having trouble running this code as per my prior question on Exception handling...[]) throws Exception{ This is where I begin to see problems with error messages
Java exception
Java exception  What is the difference between exception and error
exception handling code for file not found error..
exception handling code for file not found error..  How to do exception handling for file not found error
Exception handling in java
Exception handling in java We are going to discus about Exception handling in java. Java program many provides exception. We are handle of error in program when during execution in a program .we are generate of exception try() block
Exception Java
Exception Java  Hi, What are the Exception Java? Thanks   Hi, Read it at Java Exception. Thanks
Java exception
Java exception  What happens if an exception is not caught
Java exception
Java exception  Can an exception be rethrown
Java Exception
Java Exception  Which is superclass of Exception
java exception
java exception   define an exception called no match exception tat z... { public static void main(String[] args) throws Exception { String z="Hello"; if(!z.equals("India")){ throw new Exception
Java exception
Java exception  What is the difference between Checked and Unchecked exception
Null pointer exception error in Jsp - JSP-Servlet
Null pointer exception error in Jsp  Hi i write a login page. when i validate the login value then the nullpointer exception error is occured. my... then the following error is occured. HTTP Status 500
Null pointer exception error in Jsp - JSP-Servlet
Null pointer exception error in Jsp  Expert:Majid Hi i write a login page. when i validate the login value then the nullpointer exception error... then the following error is occured. HTTP Status 500
Java Exception
Java Exception  Explain about checked and unchecked Exceptions... a compile-time error by the programmer. These exceptions extend... indicated by Error, RuntimeException or their subclasses. For example if you call
exception in java - Java Beginners
exception in java  exception in java
java exception handle
java exception handle  How error can be handled in the exception class?? can we handle fatal error in java
exception in java
exception in java  StringIndexOutOfBounds Exception in flames program   Hi Friend, We have providing you a program. Try it:ADS... ) ) return "Names are same"; else return "Error
Java Exception
Java Exception  What are monitors
Java Exception
Java Exception  What are Chained Exceptions
Java exception
Java exception  What is NullPointerException and how to handle
Java exception
Java exception  Can try statements be nested
Java Exception
Java Exception  What is the purpose of finalization
Java Exception
Java Exception  Why Runtime Exceptions are Not Checked
Java Exception
Java Exception  What is ?Resource leak
Java Exception
Java Exception  Why Errors are Not Checked
Java Exception
Java Exception  Can a catch block exist without a try block
Java Exception
Java Exception  If I write System.exit (0); at the end of the try block, will the finally block still execute
check null exception java
check null exception java  check null exception java - How to check the null exception on Java?   The null pointer exception in java occurs... this error. The only way to handle this error is validation. You need to check
Java exception handling
Java exception handling  what are the constraints imposed by overriding on exception handling
List of Java Exception
List of Java Exception       Exception in Java are classified on the basis of  the exception handled by the java compiler. Java consists of the following type of built
List of Java Exception
List of Java Exception     ...; the exception handled by the java compiler. Java consists of the following type.... This exception is thrown when there is an error in input-output operation. In this case
Java Exception - Java Beginners
" it leads to compiletime error: unreported exception. main use of try/catch...Java Exception  Why we are using throws in the java program even if we have try...catch block? If throws will throw the exception then who will catch
null pointer exception in java
null pointer exception in java  What is null pointer exception in Java and when it occurs? Show it with an example.Thanks!   Java Null Pointer Exception
Java exception handling
Java exception handling  How does a try statement determine which catch clause should be used to handle an exception
Exception - Java Beginners
What is Exception in Java  What is the Exception that occurs while running the application in Java
Java exception handling
Java exception handling  How does a try statement determine which catch clause should be used to handle an exception
Java Stream Write Exception
Java Stream Write Exception  I am doing socket programming. I have..."; System.out.println(data1); out.writeUTF(data1); this line causes the error } catch(Exception e) { System.out.println("Exception :: "+e); } When the line
Java exception handling
Java exception handling  What is the catch or declare rule for method declarations
Java exception handling
Java exception handling  What is the difference between throw and throws keywords
Exception - Java Beginners
Chained Exception in Java  What is the Chained Exception in Java?  Chained Exception in JavaChained Exception in Java, this is a new... of exceptions, and these exception can be caused by another exception.Exceptions in Java
exception
exception  chek in and check out exception in java   Please visit the following link: Checked and Unchecked Exception
Java exception handling
Java exception handling  What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement
java question on exception
java question on exception  can we use inbuilt exception variable with throw keyword in java
Exception Handling - Java Beginners
Exception Handling  hi,can u pls make me understand d clear cut difference between throw n throws keyword... n how can we make our own exception..i... want to force an exception then we use throw keyword. the throw keyword is used

Ads