1.14.1.Attach a D or d to double literals, but it is not necessary.
public class MainClass{ public static void main(String[] argv){ double d = 1.1D; // Optional, not required double g = 987.897; // No 'D' suffix, but OK because the literal is a double by default
System.out.println(d);
System.out.println(g);
}
}
1.14.double
1.14.1.
Attach a D or d to double literals, but it is not necessary.