Multiple choice technology programming languages

What will be the ouput of the following code snippet? String myString = new String("Java"); StringBuffer myBuffer = new StringBuffer("Java"); myString.replace('a','o'); myBuffer.replace('a','o'); System.out.println(myString+","+myBuffer);

  1. Jovo,Jovo

  2. Java,Jovo

  3. Java,Java

  4. Compile time error

Reveal answer Fill a bubble to check yourself
D Correct answer