‹ Back to the paper
Find the output of following snippet: String S1 = "AB", S2 = "BC"; for(int i = 0, j = 0; i <…
Find the output of following snippet:
String S1 = "AB", S2 = "BC";
for(int i = 0, j = 0; i < S1.length(); i++, j++)
System.out.println(S1.charAt(i) + S2.charAt(j));Answer
Answer
AI131
133
From ISC Computer Science - Competency Focused Practice Questions (CISCE, August 2024), question 48.