Solved

Which of the Following Statements Will Convert the String, Str

Question 60

Multiple Choice

Which of the following statements will convert the string, str = "285" to an int?


A) int x = str;
B) int x = Integer.parseInteger(str) ;
C) int x = Integer.integer(str) ;
D) int x = Integer.parseInt(str) ;

Correct Answer:

verifed

Verified

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

Related Questions