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

A) (int to double) amount

B) int (amount) to double

C) int to double(amount)

D) (double) amount

View Answer
Option – D.