ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
What is exception and error? and what is the difference 
between them?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is exception and error? and what is the difference between them?
Answer
# 1
Exception and Errors are two subclasses of Throwable Class.

Exception:-Exception can be devided into two other groups.

Checked Exceptions and Unchecked Exceptions.

Checked Exceptions are the User defined exceptions and it 
must be caught by the user.(Eg:IOException etc.)

Unchecked Exceptions are the subclasses of Runtime 
Exception.(Eg:FileNotFound Exception,Division by Zero etc.)

Errors:-Errors are the external interrupts that terminates 
the execution of the program.That means Errors ate out of 
user control.It can't be catched by the user.(Eg: 
OutOfMemory Exception etc.)
 
Is This Answer Correct ?    3 Yes 0 No
Krishnakanth
 
  Re: What is exception and error? and what is the difference between them?
Answer
# 2
The exception class defines mild error conditions that your 
program encounters.
Ex: Arithmetic Exception,FileNotFound Exception

Exception can occur when 
  --> Try to open the file,which does not exist
  --> the network connection is disrupted.
  --> operands being manipulated are out of prescribed 
ranges.
  --> the class file you are interested in loading is 
missing.
     The error class defines serious error conditions that 
you should not attempt to recover from .in most cases it is 
advisable to let the program terminate when such an error 
is encountered.
 Ex. Running out of memory error,stack overflow error.
 
Is This Answer Correct ?    0 Yes 1 No
Janet
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
How multipleInheritance is possible in java? Satyam16
How to synchonise HashMap IBM3
How multi processing is achieved in JAVA? BMC4
If you are reviewing the code of your team members, what points will you look at, assuming the performance of the application is not so great KPIT2
what is the Diff. between Access Specifiers and Access Modifiers? Wipro15
Can we override static methods? Bally-Technologies15
how can u handle run time exception in java? explain with brief explanation with examples? CTS2
Marker interface means , interface which has no methods.Then what is the necessity of its usage.I read "it tells the compiler that it should be treated differently ". "It is used to store state of an object". But still am not clear.Please explain clearly.  1
What is the importance in context in JDBC connection pools? iFlex2
Hi Friends, Can u give few interview questions which relates ArrayList and Hashmap. I mean how to link ArrayList and HashMap.I know this is not good way of asking questions like this , but i need Microsoft1
What is the difference between this() and super()? TCS11
How many objects are created for a singleton class Ness-Technologies4
What is the middleware?  2
How are Java source code files named?  3
I have a Arraylist object, it has duplecate values also. Now question is i want delete duplecate data in that objet with out using Set? Aricent5
Package1 and Package2 both have a method name lets say "methodA" with different implementation. When I import both the packages in a java class how can I use both the methods? Ericsson3
what is main difference between architecture,framework and design pattren  1
I have a String s = java; What is the output when I say s.replaceAll('j', 'k'); Also what is the value of s after replacing? KPIT5
explain System.out.println IBM41
How does serialization work Ordain-Solutions2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com