Multiple Choice
To convert the string, str = "285" to an int, use the following statement:
A) int x = str;
B) int x = Integer.parseInteger(str) ;
C) int x = Integer.integer(str) ;
D) int x = Integer.parseInt(str) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q12: If you are using characters other than
Q14: What will be printed after the following
Q17: The no-arg constructor for a StringBuilder object
Q19: What will be the tokens in the
Q20: The following statement correctly creates a StringBuilder
Q21: If more than one character is used
Q23: Which of the following statements will print
Q24: What will be the tokens given the
Q26: For the following code, how many times
Q34: What would be the results of executing