What would be the value of i after the execution of the following statements in Java? int i; String st1=”Rakesh”; String st2=”Roshan”; i=st1.compareTo(st2);
Reveal answer
Fill a bubble to check yourself
What would be the value of i after the execution of the following statements in Java? int i; String st1=”Rakesh”; String st2=”Roshan”; i=st1.compareTo(st2);