In-depth analysis of java automatic packing and unpacking, and in-depth analysis of java packingThis is a new content introduced after jdk1.5. As the best memory for posting, I decided to replace my memory with a blog:The java language specification
1,
Packing and unpacking are an abstract concept.
2,
Packing is
Value Type Convert
Reference Type .
Reference Type Convert
Value Type
You can use the packing and unpacking functions to allow
Value Type Any value
Object Type And link the value
1,
Packing and unpacking are an abstract concept.
2,
Packing is
Value Type Convert
Reference Type .
Reference Type Convert
Value Type
You can use the packing and unpacking functions to allow
Value Type Any value
Object Type And link the value
C # packing and unpacking [sorting] (conversion ),
// 1. // packing and unpacking are an abstract concept. // 2. // packing converts the value type to the reference type; binning converts a reference type to a value type. // you can use the binning
Referenced in the qunews blog
You must understand the CTS and its characteristics when packing and unpacking.
CTS (Common Type System), one of the important technologies and foundations of NET ). As the name suggests, CTS is a general type
--------------------------------------------------Packing and unpacking are an abstract concept.-------------------------------------------------Packing is to convert the value type to the reference type; unpacking is to convert the reference type
1,Packing and unpacking are an abstract concept.2,Packing is to convert the value type to the reference type; unpacking is to convert the reference type to the value typeThe binning and unboxing functions allow conversion between any value of the
This is a new content introduced after jdk1.5. As the best memory for posting, I decided to replace my memory with a blog:
The java language specification says: in many cases, packaging and unpackaging are done by the compiler itself (in this case,
1. packing and unpacking are an abstract concept.2. Packing is to convert the Value TypeConvert to reference type;
Binning refers to the reference typeConvert to Value Type
The binning and unboxing functions allow conversion between any value of
Objective C # Principle 17: minimum packing and unpackingItem 17: Minimize boxing and unboxing
The value type is the data container, and they are not too many. On the other hand, the. NET Framework is designed as a single inherited reference type,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.