publicclassDefaultValueDemo {
privatebytebyteValue;
privateshortshortValue;
privateintintValue;
privatelonglongValue;
privatefloatfloatValue;
privatedoubledoubleValue;
privatecharcharValue;
privatechar[] charArrayValue;
privatebooleanbooleanValue;
privateboolean[] booleanArrayValue;
privateBytebyteVal;
privateShortshortVal;
privateIntegerintegerVal;
privateLonglongVal;
privateFloatfloatVal;
privateDoubledoubleVal;
privateCharactercharacterVal;
privateBooleanbooleanVal;
privateBoolean[] booleanArrayVal;
privateStringstringVal;
privateString[] stringArrayVal;
privateObjectobjectVal;
publicstaticvoidmain(String[] args) {
DefaultValueDemodemo=newDefaultValueDemo();
System.out.println("byte: "+demo.byteValue); System.out.println("short: "+demo.shortValue); System.out.println("int: "+demo.intValue);
System.out.println("long: "+demo.longValue); System.out.println("float: "+demo.floatValue); System.out.println("double: "+demo.doubleValue); System.out.println("char: "+demo.charValue); System.out.println("char[]: "+demo.charArrayValue);
System.out.println("boolean: "+demo.booleanValue);
System.out.println("Byte: "+demo.byteVal);
System.out.println("Short: "+demo.shortVal);
System.out.println("Integer: "+demo.integerVal);
System.out.println("Long: "+demo.longVal);
System.out.println("Float: "+demo.floatVal);
System.out.println("Double: "+demo.doubleVal);
System.out.println("Character: "+demo.characterVal);
System.out.println("Boolean: "+demo.booleanVal);
System.out.println("String: "+demo.stringVal);
System.out.println("String[]: "+demo.stringArrayVal);
System.out.println("Object: "+demo.objectVal);
System.out.println("boolean[]: "+demo.booleanArrayValue);
System.out.println("Boolean[]: "+demo.booleanArrayVal);
}
}