CodePudding user response:
C # more pure point (really did everything is an Object), no primitive types in Java, c # is the difference between the values in the type of reference type attribute values are based on the test case, c # in the packing is all variables are converted into the Object to operate, split open a case is converted into a specific type, the original type is not the Object in the Java, Java boxing is the original type of encapsulation corresponding reference type, split open a case is to extract value corresponding to the original type in reference types,CodePudding user response:
Packing: basic types into a wrapper types of process, Object a=1;Split open a case: a wrapper type transformation as the basic types of process, Interger. Vauleof (a);