What would be the value of i and ch after the execution of the following statements in Java? int i; char ch; String st1=”Rakesh Roshan”; i=st1.indexOf(‘e’); ch=st1.charAt(5);
Reveal answer
Fill a bubble to check yourself
What would be the value of i and ch after the execution of the following statements in Java? int i; char ch; String st1=”Rakesh Roshan”; i=st1.indexOf(‘e’); ch=st1.charAt(5);