Examlex

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" );
}


Definitions:

Procter & Gamble

An American multinational consumer goods corporation specializing in a wide range of personal health/consumer health, and hygiene products.

Old Spice

A brand of male grooming products known for its distinctive fragrance and creative advertising campaigns.

Extraneous Variable

A variable that influences the outcome of an experiment but is not the variable that is actually of interest. It's external and not the focus of the study.

Information Technology

The use of systems (especially computers and telecommunications) for storing, retrieving, and sending information.

Related Questions