Exception Snippet - Mostly Asked by Interviewer
// 1. Java Exception Concepts
Whats the Answer ? Will it Compile ? If Yes Whats the Answer ??
// 1. Java Exception Concepts
Public Class JavaCodeSnippets
try
{
{
try
{
double a = 1.0/0.0
System.out.println("PadnaSeekhna" + a);
}
catch(Exception e)
{
System.out.println("PadnaSeekhna");
}
}
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