Computer Science, asked by subramani31, 4 months ago

What will be the output of the following Java code?

String a = "helloworld";
a = a.substring(6,8);
System.out.println(a);

Answers

Answered by saeedsmulla1996
5

Answer:

wor

Explanation:

substring function counts from zero

Similar questions