Name: ___yourname = 1 point______________  September 9, 2008

 

If I omit  import java.util.Scanner; 

what error message will I get?

ÏTest.java:6: cannot find symbol= 2 points
ÏϧÏsymbol  : class Scanner
ÏϧÏlocation: class Test
ÏÏ§Ï   Scanner keyboard;
ÏÏ§Ï   ^
ϼ§ÏTest.java:8: cannot find symbol
ÏϧÏsymbol  : class Scanner
ÏϧÏlocation: class Test
ÏϧϠ    keyboard = new Scanner (System.in);
ÏϧϠ                   ^

 

Can I write an exception handler for it?

NO  = 1 point

 

Why or why not?

Because it is a compile time error and exception handlers are for runtime errors

                             2 points                                                                 2 points