Question: D Question 2 1 pts Whats the difference between doing this: Strings = Hello; s.toUpperCase(); and doing this: Strings = Hello: s=s.toUpperCase(); (Section 4.4.4 pg

 D Question 2 1 pts Whats the difference between doing this:

Strings = "Hello"; s.toUpperCase(); and doing this: Strings = "Hello": s=s.toUpperCase(); (Section

D Question 2 1 pts Whats the difference between doing this: Strings = "Hello"; s.toUpperCase(); and doing this: Strings = "Hello": s=s.toUpperCase(); (Section 4.4.4 pg 131) (If you are unsure, test it in your IDE) The second example saves the new string, while the first's toUpperCase() statement does nothing Both examples do not make any changes to the string Both examples change the string to uppercase "HELLO" Since strings are composed of integers, the toUpperCase method will throw" into an unnamed variable that can be referenced by creating the statement: int** var =s*; The first example saves the new string, while the second's toUpperCase() statement does nothing Question 4 1 pts If I want to get the slot number of a character, what method do I use? (Section 4.4.9 pg 136) charAt() length() indexOFO toUpperCasel) isLetter()

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!