Float.SIZE in Java

Float.SIZE: This is available in java.lang.Float class of Java.

Syntax:

int java.lang.Float.SIZE

The number of bits used to represent a float value (i.e 32).

Approach

Java

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

        System.out.println(Float.SIZE);

    }
}

Output:

32

No comments:

Post a Comment