Home / MCQ Bank / Computer
Computer Interfaces And Abstract Classes Difficulty: Medium

What will be the output of the following Java program? package pkg; class output { public static void main(String args[]) { StringBuffer s1 = new StringBuffer("Hello"); s1.setCharAt(1, x); System.out.println(s1); } }

Select the correct option to test your answer:

More Computer Questions

What is the usual size of a run in tim sort? In ggplot2, what function is used to create a scatter plot? Which of the following methods can be used to search an element in a linked list? Which of the following methods is used to replace all occurrences of a specified character in a string in Java? There are . . . . . . . . types of read requests that a coordinator can send to a replica.