

MCQOPTIONS
Saved Bookmarks
1. |
/* Missing Statement ? */ public class foo { public static void main(String[]args)throws Exception { java.io.PrintWriter out = new java.io.PrintWriter(); new java.io.OutputStreamWriter(System.out,true); out.println("Hello"); } } What line of code should replace the missing statement to make this program compile? |
A. | No statement required. |
B. | import java.io.*; |
C. | include java.io.*; |
D. | import java.io.PrintWriter; |
Answer» B. import java.io.*; | |