Interfaces And Abstract Classes - Study Mode
[#181] In Java, can an abstract class have non-abstract methods?
Correct Answer
(C) Yes, an abstract class can have both abstract and non-abstract methods
[#182] What is the purpose of the "default" keyword in Java interfaces?
Correct Answer
(D) To specify the default implementation of a method
[#183] In Java, can a class implement an interface and extend an abstract class simultaneously?
Correct Answer
(D) Yes, a class can implement an interface and extend an abstract class
[#184] Which of these stream contains the classes which can work on character stream?
Correct Answer
(C) Character Stream
[#185] Which of the following is the correct way of importing an entire package 'pkg'?
Correct Answer
(C) import pkg.*