Skip to main content

Java Topic Practice

String Indexing

Practice mode with 15 Java-focused questions, immediate answer checks, and explanations.

For practice use only.

String Indexing MCQ Practice

String Indexing Java practice with 15 questions, code tracing, and a worked explanation for every answer.

Question 1 of 15

Answered 0 of 15

Choose one answer.

Code Tracing 01 - String Indexing: track the final printed value.

String word = "ALGORITHM";
int start = 0;
String piece = word.substring(start, start + 3);
System.out.print(piece);
Choose one answer.