Interfaces And Abstract Classes - Study Mode
[#171] What is the purpose of the "final" keyword in Java?
Correct Answer
(C) To indicate that a class, method, or variable cannot be further extended, overridden, or modified
[#172] In Java, can an abstract class have constructors?
Correct Answer
(B) Yes, an abstract class can have constructors
[#173] In Java, can an interface have static methods with implementations?
Correct Answer
(D) Yes, starting from Java 8, interfaces can have static methods with implementations
[#174] In Java, can an abstract class have private methods with implementations?
Correct Answer
(D) Yes, starting from Java 9, abstract classes can have private methods with implementations
[#175] In Java, can an abstract class have static methods with implementations?
Correct Answer
(B) Yes, an abstract class can have static methods with implementations