Which of the following converts "25" to 25.0?

ICSE Class 10 Computer Applications PYQ · 2025 Paper · Section A

1(xvi)1 Mark · 2025 · Section A · 2025 Paper

Which of the following converts "25" to 25.0?

Show SolutionHide Solution↓

Double.parseDouble("25")

Reason — In Java, the method Double.parseDouble("25") is used to convert a string containing a numeric value into a double data type. It belongs to the Double class and takes a string as an argument, returning its equivalent double value.

← Previous questionNext question →

Browse the free Computer Applications sample bank