Translate

Exception Snippet


Exception Snippet - Mostly Asked by Interviewer

// 1.  Java Exception Concepts


Public Class JavaCodeSnippets
{

try
{
double a = 1.0/0.0
System.out.println("PadnaSeekhna" + a);
}

catch(Exception e)
{
System.out.println("PadnaSeekhna");
}
}

Whats the Answer ? Will it Compile ? If Yes Whats the Answer  ??

No comments:

Post a Comment