java simple exercises

The first line declares two variables s1 and s2, whose values ??are character type 0.5 and character type 12 respectively.

The second line declares a double variable x, and sets the value of s1 to Convert the value to a double and assign it to it

The third line declares an integer y and converts the value of s2 into an integer and passes it to it

The fourth line is the result of the permission. Printing is 12.5

So choose A

D is character type, so don’t choose it