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   interview questions urls   External Links  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
how to handle exceptions in core applications?
 Question Submitted By :: Gopalraop
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how to handle exceptions in core applications?
Answer
# 1
In core applications we can handle the exceptions by using
try &catch blocks.

ex:
class excep
{
public static void main(String[] args)
{
try
{
System.out.println(2/0);
}
catch(Exception e)
{
System.out.println(e);
}

}
}
 
Is This Answer Correct ?    1 Yes 0 No
Laxmi
 
  Re: how to handle exceptions in core applications?
Answer
# 2
in core java, we can handle the exception by the following 
key words
1.try
2.catch
3.finally
4.throws(it throws only predefined exception)
5.throw(it throw both predefined and userdefined exception)
 
Is This Answer Correct ?    1 Yes 0 No
Tamilvanan
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
When is an object in the mean to garbage collection?  3
what is dynamic method dispatch ? Fidelity8
What is the difference between add() and addElement() method in Vector Class ? TCS2
What is JIT ? Satyam4
os is developed in c no java is more secured then c na why dont the os developed is developed using java  1
Hi buddy, well i got that there is always a default constructor with abstract class. OK. But why not with interface? Thanks in advance.  1
Does garbage collection guarantee that a program will not run out of memory?  1
What are Transient and Volatile Modifiers?  1
which methods consisting of the serilizable interface?  3
Can you run the product development on all operating systems ?  1
By what default value is an object reference declared as an instance variable? Wipro1
If all the methods in abstract class are declared as abstract then what is difference between abstract class and in interface? Synechron4
Does a class inherit the constructor of its super class?if it does, how can you hide that constructor? if it doesnot how can you call it from the sub class?  1
they asked class A{} class B{} class c{} all the three class saved as a single file,there is no main method in the file and anothe class M.java class m { psvm(String args[]) { // here the parent class can access } } DNS1
Which characters are allowed to use as the second character of an identifier, and which characters are not allowed?  1
class A { class B { psvm(String args[]) { } } } if the prg saved in A.java whats the o/p? HCL3
What is Map interface? Wipro2
what are the different access specifiers that can be used by interfaces and abstract classes? can anyone give me detailed description on this  6
Difference between ?System.out.println? and ?System.error.println?? Sai-Softech2
Why Wait and notify are kept in Object class although they are used only with Thread Class  2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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