Home / MCQ Bank / Computer
Computer Input Output Difficulty: Medium

What will be the output of the following Java program if input given is 'abcqfghqbcd'? class Input_Output { public static void main(String args[]) throws IOException { char c; BufferedReader obj = new BufferedReader(new InputStreamReader(System.in)); do { c = (char) obj.read(); System.out.print(c); } while(c != 'q'); } }

Select the correct option to test your answer:

More Computer Questions

Which HTML Tag will use to scroll a text in web page? Which of the following is an attribute to the script object? What will be the output of the following Python code? matrix = [[1, 2, 3, 4], [4, 5, 6, 7], [8, 9, 10, 11], [12, 13, 14, 15]] for i in range(0, 4): print(matrix[i][1], end = " ") fgetc, getc, getchar are all declared in . . . . . . . . You should save your computer from?