Untitled
class defaultdemo { static byte b; static short s; static int i; static long l; static float f; static double d; static char c; static boolen bl; public static void main (string[] args) { default values.df=new defaultdemo(); system.out.println("the default values of primitive data type :>are:"); system.out.println("byte :" +b); system.out.println("short:" +s); system.out.println("int: " +i); system.out.println("long: " +l); system.out.println("float :" +f); system.out.println("double :" +d); system.out.println("char :" +c); system.out.println("boolen ;" +bl); } }
Leave a Comment