Multiple choice technology security

Please select which of the following statements regarding Java 2 Security is TRUE?

  1. The type safety mechanism in the Java language prevents the execution of malicious code

  2. Two classes with the same fully qualified name but which are defined by different instances of a class loader are NOT of the same type

  3. All signed classes are implicitly trusted and granted full access

  4. The principal role of a TrustManager is to determine if presented authentication credentials should be trusted

  5. Option 1 AND Option 4

  6. Option 2 AND Option 4

Reveal answer Fill a bubble to check yourself
F Correct answer
Explanation

Option 2 is true: classes with identical fully qualified names loaded by different class loaders are treated as different types due to namespace isolation. Option 4 is also true: TrustManager specifically validates authentication credentials like X.509 certificates. Options 1 and 3 are false: type safety doesn't prevent all malicious code, and signed classes aren't automatically granted full access.