Examlex

Solved

What Will the Following Code Display

question 13

Multiple Choice

What will the following code display?
String input = "99#7";
Int number;
Try
{
Number = Integer.parseInt(input) ;
}
Catch(NumberFormatException ex)
{
Number = 0;
}
Catch(RuntimeException ex)
{
Number = 1;
}
Catch(Exception ex)
{
Number = -1;
}
System.out.println(number) ;


Definitions:

Market Income

The amount of income earned by an individual or company without any government transfers.

Quintile

A statistical value dividing a data set into five equal parts, each representing 20% of the population being studied.

Medicaid

A joint federal and state program that helps with medical costs for some people with limited income and resources.

Disabled Persons

Individuals who have a physical, mental, intellectual, or sensory impairment which, in interaction with various barriers, may hinder their full and effective participation in society on an equal basis with others.

Related Questions