Solved

We Have Coded the Following Sequence

Question 103

Short Answer

We have coded the following sequence:
try
{
Scanner scan = new Scanner( new File( "data.txt" ) );
System.out.println( "ABC" );
}
catch( FileNotFoundException fnfe )
{
System.out.println( "DEF" );
}
catch( Exception e)
{
System.out.println( "GHI" );
}
It compiles and runs; the output is DEF. What conclusion can you draw from looking at the output?

Correct Answer:

verifed

Verified

The file d...

View Answer

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

Related Questions