Multiple Choice
Which of the following statements converts a String object variable named str to an int and stores the value in the variable x?
A) int x = Integer.integer(str) ;
B) int x - str;
C) int x = Integer.parseInteger(str) ;
D) int x = Integer.parseInt(str) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q41: What will be displayed after the following
Q42: Which of the following statements converts an
Q43: What will be displayed after the following
Q44: You can concatenate String objects by using
Q45: The term _ is commonly used to
Q47: You cannot assign a value to a
Q48: The process of breaking a string down
Q49: If str is declared as: String str
Q50: What is the term used for a
Q51: The String class's regionMatches method performs a