K
Q. What is the output of the following code snippet?
Code:
String s1 = “Hello”;
int i = 2;
System.out.println(sA)lastIndexOf(‘l’, i));
int i = 2;
System.out.println(sA)lastIndexOf(‘l’, i));
- Correct Answer - Option(A)
- Views: 127
- Filed under category JAVA
Discusssion
Login to discuss.