Multiple choice technology programming languages

What is the output (Assuming written inside main) ? String s1 = new String("gopal"); String s2 = s1.replace('m','i'); s1.concat("Poddar"); System.out.println(s1); System.out.println((s1+s2).charAt(5));

  1. Compile error

  2. gopalPoddar o

  3. gopalPoddar i

  4. gopal i

Reveal answer Fill a bubble to check yourself
C Correct answer