Numeric Data Type

Numeric Data in Java

int and Integer are same for storing integer value.
float and double is used to store decimal values

public class NumericData {
	public static void main(String[] args) {
		// Numeric Data Integer
		int x = 10;
		Integer y = 15;
                double f = 1.5;
		System.out.println(f);
		System.out.println(x + y);

		// Numeric Data Float - Decimal
		Float xx = (float) 10.0;
		Float yy = (float) 15.0;
		System.out.println(xx + yy);

	}
}