泛型相当有用,因为他们提供强制的编译时类型检查,要求更少的数据类型之间的显式转换,并减少装箱拆箱的操作和运行时类型检查。
Generics are useful because they provide stronger compile-time type checking, require fewer explicit conversions between data types, and reduce the need for boxing operations and run-time type checks.
在运行时检查类型或对象实例的元数据的能力是一个非常强大的功能。
The ability to examine the metadata of a type or object instance at run time is a powerful feature.
现在,如果在运行时作为基类型传递派生的子类,那么无法通过检查接口参数类型识别出子类。
When you now try to pass a derived subclass in terms of a base type at run time, the subclasses will not be recognized by simply introspecting the interface parameter types.
同样,对“外露”类型参数的instance of检查将在编译时产生“unchecked”警告,而且检查将不会如期在运行时进行。
Similarly, instanceof checks on naked type parameters will result in an "unchecked" warning at compile time and the check will not occur as expected at runtime.
可以抛出您需要的任何类型的异常(已检查、运行时或错误),只要方法签名支持它即可。
You can throw any kind of exception you like - checked, runtime, or error - as long as the method signature supports it.
很不幸的是,JDBC 的访问SQL的方法丢失了类型安全,因为这是一个调用级别的接口,因此它限制只有在运行时才能检查字符串。
Type safety is sadly missing from JDBC's approach to accessing SQL, by the way, because it is a call-level interface and is thus restricted to strings that can only be checked at runtime.
在运行时存储类型细节,用来进行检查并保护系统,因此ActionScript3是强类型的。
The type details are stored during runtime for checking and to safeguard the system, making ActionScript 3 strongly typed.
进行检查,以确保已向SDO运行时注册了po . xsd中定义的类型。
Checks to be sure the types defined in po.xsd were registered with SDO runtime.
术语反映,另一方面,是一个通用术语跨编程语言使用引用程序的能力检查和修改它的对象在运行时类型等。
The term reflection, on the other hand, is a generic term used across programming languages to refer to the ability of a program to inspect and modify its objects, types, etc. at runtime.
在检查模式(飞镖的其他运行时)编译器慢是因为它要检查静态类型。
In checked mode (Dart's other runtime) the compiler is slower because it is going to check the static types.
执行检查形式将会检查溢出情况,如果结果值超出目标类型的限制,则会生成运行时异常。
The checked forms check for overflow and generate a runtime exception if the resulting value exceeds the limits of the target type.
然后,当你想使用的生产运行时,它将跳过这一步,任何呃逆涉及类型应该已经被处理(由程序员)检查模式。
Then, when you want to use the production runtime, it will skip this step as any hiccup involving types should already have been handled (by the programmer) in checked mode.
这种情况下,代码还会更加的健壮。因为编译和运行时进行了强的类型检查。
In this case, the code will be more robust because of the strong type checking provided by the compiler and runtime.
这种情况下,代码还会更加的健壮。因为编译和运行时进行了强的类型检查。
In this case, the code will be more robust because of the strong type checking provided by the compiler and runtime.
应用推荐