1.

What is the output of this program if input given is InterviewMania ?import java.util.*;import java.io.*; public class IO_Example { public static void main(String args[]) throws IOException { char ch; BufferedReader obj = new BufferedReader(new InputStreamReader(System.in)); do { ch = (char) obj.read(); System.out.print(ch); } while(ch!='w'); } }

A. InterviewMania
B. Mania
C. Interview
D. ManiaInterview
E. None of these
Answer» D. ManiaInterview


Discussion

No Comment Found

Related MCQs