Programming Language › String in Java › Question #2217
Single Choice Not Set

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

ID: #2217 String in Java 4,298 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

Explanation

bc

Share This Question

Challenge a friend or share with your study group.