java lang Double Class - java.lang.Double Class in Java
Double Class in Java
The Double class wraps the value of primitive data type double into Double object. An object of type Double contains a single field whose type is double. In other words the wrapper classes create objects for primitive data types. The wrapper classes are Boolean, Byte, Character, Short, Integer, Float, Long and Double.
Java Double class provides several useful methods for converting a double to a String and a String to a double, as well as other constants and methods.
java.lang.Double Class Example
java.lang.Double Class Example 2
Following Java Double class example you can learn how to use static methods of Java Double Class. If you use static methods you need not to create the class instance. You can call static methods using the class name as reference.
java.lang.Double Class Example 3