adplus-dvertising
frame-decoration

Question

Which of the following type casts will convert an Integer variable named amount to a Double type?

a.

(double) amount

b.

(int to double) amount

c.

int to double(amount)

d.

int (amount) to double

Answer: (a).(double) amount

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following type casts will convert an Integer variable named amount to a Double type?