什么是类型安全? [英] What is type-safety?

查看:216
本文介绍了什么是类型安全?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个brainbench最近的考试,拿到了高分,但也有一对夫妇的这是对我来说很难的问题。也许是因为英语不是我的母语......其中一个问题是:

I had a brainbench exam recently, got high mark, but there were a couple of questions which were hard for me. Maybe it's because english is not my native language... One of the questions is:

以下哪一项描述类型安全?

Which one of the following describes type-safety?

  1. 用于确保引用和值类型的CLR
  2. 安全性的编程结构
  3. 从内存泄漏是不允许非托管访问的结果,该保护
  4. 的CLR特定的功能,提供了类型可能不是自己的AppDomain外部访问的内存保证
  5. 创建通过使用强命名键
  6. 来保护组件和它们的类型的机制
  7. 在处理与分配的对象都可以在兼容的方式获取保证的概念
  1. A programming construct used to ensure the security of reference and value types in the CLR
  2. The protection from memory leakage as a result of disallowing unmanaged access
  3. The CLR-specific feature providing assurances that types may not access memory outside their own AppDomain
  4. A mechanism created to protect assemblies and their types by the use of strong-named keys
  5. The concept dealing with assurances that allocated objects are always accessed in compatible ways

我觉得这是1或5,但他们听起来不可思议,我反正:(

I think it's 1 or 5, but they sound weird to me anyway :(

你怎么看?

推荐答案

其实我认为这是选择5,因为类型安全无关与安全。

Actually I think it's Choice 5 because type safety has nothing to do with Security.

这篇关于什么是类型安全?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆