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);
c. Integer.parseInt("100");
e. Integer.parseInt("345", 8);
(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...
In order to use the files contained in a compressed folder, they must first be
a. debugged. b. extracted. c. associated with a file type. d. compacted.
Computer Science & Information Technology
A subtree of node n is a subtree rooted at ______.
a. node n b. the parent of node n c. a child of node n d. a sibling of node n
Computer Science & Information Technology