float keyword in java

In Java, ” float ” is a primitive type. A float variable stores a double−precision 32-bit floating point value. Examples float ratio = .01f; float diameter = 6.15f; The float keyword can be used as a method parameter as below: 1 2 3 4 public void displayMarks(float marks) {       System.out.println("Total percentage marks […]

Share this article on