public class DataTypes { public static void main(String[] args) { byte b=10; //Wrong : b=2000; //Force b=(byte)2000; //Type Casting System.out.println(b); short s=500; int i=500; long l=2000000; char ch='$'; float f=100.4f; double d=323423423.234; boolean bt=true; boolean bf=false; System.out.println(bt && bf); System.out.println(bt && bt); System.out.println(bt || bf); } }