Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Error and Exception in Java

Have Programming Question? Ask it here!
 
 
 


Deepak Kumar
Error and Exception in Java
1 Answer(s)      3 years and 10 months ago
Posted in : Java Beginners


Hi,

What is the base class for Error and Exception?

Thanks

Advertisement
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
Java exception
Java exception  What is the difference between exception and error
Error n Exception
Error n Exception  Difference between errors and exceptions
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
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 Java
Exception Java  Hi, What are the Exception Java? Thanks   Hi, Read it at Java Exception. Thanks
Java Exception
Java Exception  Which is superclass of Exception
Java exception
Java exception  Can an exception be rethrown
Java exception
Java exception  What happens if an exception is not caught
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
java exception handle
java exception handle  How error can be handled in the exception class?? can we handle fatal error in java
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 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 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 in java
exception in java  StringIndexOutOfBounds Exception in flames program   Hi Friend, We have providing you a program. Try it: import... are same"; else return "Error in finding flame
Java Exception
Java Exception  What are monitors
exception in java - Java Beginners
exception in java  exception in java
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  What is the purpose of finalization
Java exception
Java exception  Can try statements be nested
Java exception
Java exception  What is NullPointerException and how to handle
Java Exception
Java Exception  What are Chained Exceptions
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
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 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
Exception - Java Interview Questions
Java Exception  My java program is throwing an Exception ..can anyone tell me how to track those exceptions?  An error will occur showing... after try.If its not aviliable the above error ill be returned by jvm(which
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
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 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
exception in java - Java Beginners
exception in java  exception in java  Hi Friend, Exceptions are the errors that occur during the execution of the program. Exceptions...: http://www.roseindia.net/java/exceptions/ Thanks
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 exception handling
Java exception handling  What is the difference between throw and throws keywords
Java exception handling
Java exception handling  What is the catch or declare rule for method declarations
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
java question on exception
java question on exception  can we use inbuilt exception variable with throw keyword in java
java Exception - Java Beginners
java Exception  Hello sir ,Here Exception in thread "main" java.lang.NoClassDefFoundError: bitwisedemo1/java Help me /** * Author@sushant savant a=64,I=a<<2 find I using Bitwise Left shift * */ public
 

 

 

DMCA.com