MCQOPTIONS
Saved Bookmarks
| 1. |
What line of code should replace the missing statement to make this program compile? /* 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"); } } |
| A. | No statement required. |
| B. | Import java.io.*; |
| C. | Include java.io.*; |
| D. | Import java.io.PrintWriter; |
| Answer» B. Import java.io.*; | |