Which of the following statements will convert a string s into i of int type?

a. i = Integer.parseInt(s);
b. i = (new Integer(s)).intValue();
c. i = Integer.valueOf(s).intValue();
d. i = Integer.valueOf(s);
e. i = (int)(Double.parseDouble(s));


abcde All fine. d performs an auto conversion from an Integer object to int.

Computer Science & Information Technology

You might also like to view...

Which of the following is not a key organization in the open-source community?

a. Apache. b. Mozilla. c. Firefox. d. Eclipse.

Computer Science & Information Technology

Which type of network covers a large geographical area and usually consists of several smaller networks, which might use different computer platforms and network technologies?

A. PAN B. LAN C. WAN D. VPN

Computer Science & Information Technology

When setting up OUs in a new domain, why might it be useful to put all computers in one OU and all users in another?

a. It will be easier to inventory computers in the domain. b. It will help organize users into user groups. c. An OU must contain either users or computers, but not both. d. Policies generally apply to either computers or users.

Computer Science & Information Technology

The ____ key of a table is the field or minimum collection of fields that uniquely identifies a given row in that table.

A. alternate B. index C. secondary D. primary

Computer Science & Information Technology