Question: After executing the code on the right what will be the content of pos? String s1 = Java is Fun; int pos = 51.indexOf(Fun); 8
After executing the code on the right what will be the content of pos? String s1 = "Java is Fun"; int pos = 51.indexOf("Fun"); 8 B 7 D -1 Festion 3 14 minutes remaining
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
