📖 From Operating System • 14. Protection • 21 questions available
Practice MCQs for Language based Protection in Java. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.
🔄 Last updated: 2026-07-27
Q1. Which Java feature automatically checks that an index used to access an array is within valid bounds?
💡 Difficulty: easy | ✅ Correct: A
Q2. You have a custom class loader that loads untrusted classes. To prevent these classes from opening network sockets, which permission should be omitted from the policy granted to the loader?
💡 Difficulty: medium | ✅ Correct: A
Q3. A Java program loads a plugin JAR signed by a different certificate than the main application. The plugin tries to invoke a private method of a class in the main application. Assuming both are loaded by separate class loaders, which statement is correct?
💡 Difficulty: hard | ✅ Correct: B
⬆️ View all questions in the quiz below