/* 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? - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
28 Feb 2023 10:46 AM study24x7 study24x7

/* 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 ...

See more

A

No statement required.

B

import java.io.*;

C

include java.io.*;

D

import java.io.PrintWriter;

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles