Double Datatype in Java

Double:
Double is 64 bit double precision type and used when fractional precision calculation is required.

Syntax:
Declare double varibale as below
double <variable name> = <default value>;
Note: Here assigning default value is optional.

class Double
{
public static void main(String a[])
{
double forgetcode=12.35;
System.out.println("Double Value:"+forgetcode);
}
}

Output:
Double Value:12.35