Question: Consider the following statement: String str = new String ( Learning Java in 2 1 days ) ; Which of the following statements will

Consider the following statement:
String str = new String("Learning Java in 21 days");
Which of the following statements will print the str string into lowercase, print index of the first a character, and print the length of the str string?
A
System.out.println(str.toLowerCase);
System.out.println(str.indexOf("a"));
System.out.println(str.length0);
B
System.out.println(str.LowerCase));
System.out.println(str.indexOf("a"));
System out.println(str.length 0
 Consider the following statement: String str = new String("Learning Java in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!