Solved

Which of the Following Statements Converts an Int Variable Named

Question 42

Multiple Choice

Which of the following statements converts an int variable named number to a string and stores the value in the String object variable named str?


A) String str = Integer.toString(number) ;
B) String str = number.Integer.toString(str) ;
C) String str = integer(number) ;
D) String str = integer.toString(number) ;

Correct Answer:

verifed

Verified

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

Related Questions