MCQ Single Best Answer Not Set

QWhat will be the output?
String str1 = "abcde";
System.out.println(str1.substring(1, 3));

ID: #2217 String in Java 4,264 views
Question Info
#2217Q ID
Not SetDifficulty
String in JavaTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A abc
  • B bc
  • C bcd
  • D abcd
Correct Answer: Option B

Explanation

bc

Share This Question

Challenge a friend or share with your study group.