Question:
/* 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
+ Explanation
+ Report
Total Preview: 1529

Copyright © 2024. Powered by Intellect Software Ltd