13. Which keyword is used to prevent a method from being
overridden?
Correct Answer: final
Explanation: The `final` keyword prevents a method from being
overridden in subclasses.
14. What is the size of an int in Java?
Correct Answer: 4 bytes
Explanation: In Java, an int is always 4 bytes (32 bits),
regardless of
the JVM.
15. Which of these statements is true about Java
interfaces?
Correct Answer: Interfaces cannot have instance variables
Explanation: Interfaces can only have constants (static final)
and
abstract/default/static methods.