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



Home Answers Viewqa Java-Beginners Error n Exception
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


shahul hameed
Error n Exception
1 Answer(s)      a year and 8 months ago
Posted in : Java Beginners


Difference between errors and exceptions?


Advertisement
View Answers

February 5, 2013 at 7:00 PM


Error : In Java Error indicates the problem which can't be controlled or guessed when it will occur. It indicates that there is a serious problem which an application shouldn't be try to catch this error. For example OutOfMemory error. Generally error indicates the error related to system and/or linked resources. Generally an error occurs at the compilation time.

Exception : In Java an Exception indicates the problem which can be handled and guessed. In a reasonable application it indicates the problem that should be try to catch and the application behave normally. For Example IOException. Exceptions are of two types Checked exceptions and Unchecked exceptions. Generally an exception occurs at execution time.

java.lang.Throwable is the base class of both classes java.lang.Error and java.lang.Exception



Related Tutorials/Questions & Answers:
Error n Exception
Error n Exception  Difference between errors and exceptions
Listener refused the connectio n with the following error
Listener refused the connectio n with the following error  Hi I am getting the following error while trying to connect oracle database. I.... Please find and reply me a solution. The error is like this as follows
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 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
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
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
program created and compilation error of connection rightly created n tested
program created and compilation error of connection rightly created n... error for connection on which other programs are running smoothly...:( import...=con.createStatement(); } catch(Exception e) { System.out.println
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 code for file not found error..
exception handling code for file not found error..  How to do exception handling for file not found error
"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
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
Exception
Exception  public class FooException extends Exception { public..."); } public void calculate() throws FooException, Exception { try { int...(FooException ex) { // Print error and terminate application
exception
exception  wHEN RUNTIME EXCEPTION CLASS IS SUB OF EXCEPTION CLASS HOW CAN'T HANDLE UNCHECKED EXCEPTION
exception
exception  chek in and check out exception in java   Please visit the following link: Checked and Unchecked Exception
exception
arguments are not equalto two,throw a user defined exception "invalid parameter exception" ,otherwise display the two parameters.   Here is an example... is not equal to two then invalid parameter exception is thrown ,otherwise display the two
exception
exception  what is the use of catch block even though we have predefined exception object
exception
defined checked exception ââ?¬Å?InvalidCharcterFoundExceptionââ?¬Â? and creater a block of codes that will handle the exception
exception
exception  example for numberformat exception   Hi Friend, Try the following code: class NumberFormatExceptionEx{ public static void...); } catch(Exception e){ System.out.println(e
Exception
Exception  whis is the Arithmetic Exception in java? or define Arithmetic Exception with exp?   Arithmetic Exception occurs, when you divide a number by zero. Example public class TryCatch { public static void main
Exception
Exception   I was creating a table dynamically but it shows exception i.e shown down Suplier created0 Suplier created0 Suplier created0 Product created0 Product created0 Product created0 Product created0 could not fetch initial
exception
user defined unchecked exception  can we create user defined unchecked exceptions? if so what is the exact use of it in real time?   Please visit the following links: http://www.roseindia.net/java/java-exception/user
exception
exception  Identify the reason for SQLException exception, which is encountered when the developer tries to run the following code snippet to insert..."); ps.executeUpdate(); } catch(Exception e
determinant of n*n matrix using java code
determinant of n*n matrix using java code  Here is my code... { double A[][]; double m[][]; int N; public input() { Scanner s=new Scanner(System.in); System.out.println("enter dimension of matrix"); N
finding the eigenvalues and eigenvector of n*n matrix in java
finding the eigenvalues and eigenvector of n*n matrix in java  Here...[][] {{4,3,1,2},{1,1,1,1},{1,2,1,1},{1,1,1,1} }; double t, c, s; int p, q, icount..., rowOfElMax, maxElRow); q = rowOfElMax[0]; p = colRowOfElMax
n raised to power p
n raised to power p  wap to input 2 integers n and p.find and print n raised to the power p without using Math.pow() function
Sum of first n numbers
Sum of first n numbers  i want a simple java program which will show the sum of first n numbers....   import java.util.*; public class... Scanner(System.in); System.out.print("Enter value of n: "); int n
print hello n hi
print hello n hi  how to write a java program that prints "hello" 5 times, "hi" 1 time n again "hello" 4 times..?? do reply
RMI n JSP - RMI
RMI n JSP  Hi Friends, First of all let me appreciate ur promptness in delivering answers. Is it possible to make communication between RMI and JSP page ? Thanks
RMI n JSP - RMI
RMI n JSP  Hi Friends, First of all let me appreciate ur promptness in delivering answers. Is it possible to make communication between RMI and JSP page ? Thanks
 

 

 

DMCA.com