Double.BYTES in Java

Double.BYTES: This is available in java.lang.Double class of Java.

Syntax:

int java.lang.Double.BYTES

The number of bytes used to represent a double value (i.e 8 is returned).

Approach

Java

public class DoubleBytes {
    public static void main(String[] args) {

        System.out.println(Double.BYTES);

    }
}

Output:

8

No comments:

Post a Comment