Vidyalelo
Java Programming · Q10

Strings

Programming · Java Programming · question 10

Q10

In Java, what is the result of the expression "Hello".substring(1, 4)?

A.
"Hel"
B.
"H"
C.
"ell"
Answer
D.
"llo"

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board