Solved

For the Following Code, What Would Be the Value of Str[2]

Question 20

Multiple Choice

For the following code, what would be the value of str[2]?
String[ ] str = {"abc", "def", "ghi", "jkl"};


A) a reference to the String object containing "ghi"
B) "ghi"
C) a reference to the String object containing "def"
D) "def"

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions