What happens in the method that follows when s is "two"?

What happens in the method that follows when s is "two"?

public double parseInterval(String s)
{
double interval = 0.0;
try
{
interval = Double.parseDouble(s);
}
catch(NumberFormatException e)
{
}
return interval;
}

a. no value is returned since the catch block doesn't return a value
b. a compile-time error occurs since the catch block isn't properly coded
c. 0.0 is returned
d. 2.0 is returned


Answer: 0.0 is returned


Learn More :