Solved

What Is the Output of the Following Code Sequence

Question 51

Short Answer

What is the output of the following code sequence?
// parseInt method API (in Integer class)
//public static int parseInt(String) throws NumberFormatException
try
{
int age = Integer.parseInt( "h32" );
}
catch( NumberFormatException nfe )
{
System.out.println( "Hello" );
}
catch( Exception e )
{
System.out.println( "Hi" );
}
finally
{
System.out.println( "Bye" );
}

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions