Which of the following statements is correct?

a. Integer.parseInt("12", 2);
b. Integer.parseInt(100);
c. Integer.parseInt("100");
d. Integer.parseInt(100, 16);
e. Integer.parseInt("345", 8);

ce (A) is incorrect because 12 is not a binary number. (B) and (D) are incorrect because the first argument in the parseInt method must be a string.

Computer Science & Information Technology

You might also like to view...

Which cell becomes active when you press the "Enter" key?

A) Cell A1 B) The next cell down C) The cell at the bottom of the next column D) The cell at the end of the current row

Computer Science & Information Technology

Which values below can be used with the height attribute?

A) inches and pixels B) pixels and percentages C) pixels and points D) points and percentages

Computer Science & Information Technology