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
how to write a server program and sending the mails to the server using smtp protocol please help me
What is string [] args?
What is deserialization?
How many threads can I run java?
What does indexof return in java?
When is the finalize() called? What is the purpose of finalization?
can any body body expalin best definitions & best real time exaples for opps concepts.
What is proper subset?
What is jdbc api?
What is pojo class in java?
Tell me how many ways are there to initialise an integer with a constant.
Does java allow default arguments?
What is the difference between hashset and treeset in java?
What is volatile data type?
How does arrays sort work in java?