Question #144761

. Suppose that you have the following statements:
String str;
str = "Java programming: from problem analysis to program design";
What is the value of the following expressions?
a. str.indexOf("analysis")
b. str.substring(5, 16)
c. str.startsWith("Java")
d. str.startsWith("J")
e. str.endsWith(".")

Expert's answer

a.31

b.programming

c.true

d.true

e.false


LATEST TUTORIALS
APPROVED BY CLIENTS