What will be the output of the following Java code? [code] class output { public static void main(String args[])

Giao Linh

New member
What will be the output of the following Java code?
Code:
    class output 
    {
        public static void main(String args[])
        { 
           StringBuffer s1 = new StringBuffer("Hello");
           s1.insert(1,"Java");
           System.out.println(s1);
        }
    }
A. hello
B. java
C. Hello Java
D. HJavaello
 

Tìm kiếm

Back
Top