Since the string data type is a reference type, you compare addresses as opposed to comparing contents or values when you use the equality operators with two string data items.

Answer the following statement true (T) or false (F)

False

Computer Science & Information Technology

You might also like to view...

A foundation to tomorrow's learning, ________, uses Web 2.0 computing and communication technologies to support learning.

A) Media literacy B) Cyberlearning C) Coding D) Learning centers

Computer Science & Information Technology

Suppose s is a string with the value "java". What will be assigned to x if you execute the following code? char x = s.charAt(4);

a. 'a' b. 'v' c. Nothing will be assigned to x, because the execution causes the runtime error StringIndexOutofBoundsException.

Computer Science & Information Technology