Current versions of Javaonly allow generic types to contain reference types, and the Java compiler removes the detail of the contained type during compilation.
另一方面,类是引用类型(第4.2节)且被称为具有引用语义。
Classes, on the other hand, are reference types(Section 4.2) and are said to have reference semantics.
相反,当封送引用类型对象时,并不需要ref和out关键字,因为变量已经是对象的引用了。
In contrast, the ref andout keywords are not necessary when marshaling reference type objects because the variable already is a reference to the object.
转换为左值引用类型的转型表达式,例如static_cast<int&>(x);.
A cast expression to lvalue reference type, such as static_cast<int&>(x);
注意到类型参数仅能代表引用类型,而不是原始类型(就像int,double和char)。
Note that type parameters can represent only reference types not primitive types(like int, double and char).
目标类型必须是指针或引用类型,并且表达式必须计算为指针或引用。
The target type must be a pointer or reference type, and the expression must evaluate to a pointer or reference..
另外,由于结构不是引用类型,因此结构类型的值不可能为null。
Furthermore, because structs are not reference types, it is not possible for values of a structtype to be null.
Because test, being the identifier, produces other value of Reference type, which base(the global object) is used as this value:.
因为类是引用类型,有可能有多个常量和变量在幕后同时引用同一个类实例。
Because classes are reference types, it's possible for multiple constants and variables to refer to the same single instance of a class behind the scenes.
以上代码创建了Object引用类型的一个新的实例并保存到变量person中。
This code creates a new instance of the Object reference type and stores it in the variable person.
设计工具可以利用名称空间使开发人员更容易在代码中浏览和引用类型。
Design tools can make use ofnamespaces to make it easier for developers to browse and reference types in their code.
交错数组是数组的数组,因此其元素是引用类型并初始化为null。
A jagged array is an array of arrays,and therefore its elements are reference types and are initialized to null.
通常,默认值表达式用于类型参数,因为可能并不知道类型参数是值类型还是引用类型。
It should usually be used with Generic types(T) since we may not besure whether the type is a value type or reference type.
这个仅用于将对象指针和对象引用转换为继承层次结构中的其他指针或引用类型。
This one is only used to convert object pointers andobject references into other pointer or reference types in the inheritance hierarchy.
如果你不知道你正在使用的对象是否是值类型或引用类型,你可能会遇到一些惊喜。
If you don't know whether the objectyou're using is a value type or reference type, you could run into some surprises.
在Java,C和VB.NET里,构造器会在一种叫做堆的特殊数据结构里建立作为引用类型的实例。
In Java, C, and VB. NET, the constructor creates reference type objects in a special memory structure called the"heap".
深入研究Java内存管理,将增强你对堆如何工作、引用类型和垃圾回收的认识。
This deep dive into Java memory management willenhance your knowledge of how the heap works, reference types, and garbage collection.
中文
Bahasa indonesia
日本語
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt