Solved

What Does the Following Statement Do

Question 5

Multiple Choice

What does the following statement do?
String prodCode = nextLine(in, "Product Code (D=Done, L=List) ") ;


A) It will store the string "Product Code (D=Done, L=List) " in the variable in.
B) It will display "in, Product Code (D=Done, L=List) " on the screen.
C) It will display the contents of the variable in on the screen.
D) It will read the user's input and store it in the object prodCode.

Correct Answer:

verifed

Verified

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

Related Questions