Unit-2 Data Types In Java October 29, 2021 BalaSubaramani T Java Float In Java Example : DoubleDemo class DoubleDemo { public static void main(String args[]) { double a; float r = 10.8f,pi = 3.1416f; a = pi*r*r; System.out.println("Area of circle is"+a); } } OUTPUT : DoubleDemo Unit-3 Programming Constructs Unit-1 Java Introduction