About the type comparison between Java and C#

C# is more pure (really everything is an object), there is no primitive type in Java. The difference between the reference type of the value type in C# is whether the attribute value is based on the test. Boxing in C# is to convert all variables into Object for operation, and unboxing is to convert to specific type for operation. The primitive type in Java is not Object. Boxing in Java is to encapsulate the corresponding reference type in the primitive type, and unboxing is to extract the corresponding primitive type value in the reference type.
010030.com

Guess you like

Origin blog.csdn.net/m0_51415252/article/details/109096724