how to handle exceptions in core applications?
Answer Posted / laxmi
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 ? | 2 Yes | 0 No |
Post New Answer View All Answers
Is array serializable java?
Define an enumeration?
How do you allocate memory to object?
What is a super method?
How we can generate random numbers in java?
What is predicate in java?
What are different ways of object creation in java ?
What is classes in java?
Is arraylist a class in java?
What is a two-pass assembler?
What is ph and buffers?
Is java a compiler?
Which method cannot be overridden in java?
What is meant by object?
What is 32 bit float?