Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Simple Java Questions True or False? An interface can contain instance variables

ID: 3801902 • Letter: S

Question

Simple Java Questions

True or False? An interface can contain instance variables. 2. True or False? An interface can contain a constructor. 3. True or False? An interface can contain one or more static constants. 4. True or False? An interface can contain one or more abstract methods. 5. True or False? A class must implement at least one interface. 6. True or False? A class can implement more than one interface. 7. True or False? If a class has an abstract method, then that class is automatically an interface. 8. True or False? We can instantiate an object from an interface. 9. What keyword do we use in the class header that inherits from an interface? a. inherits B. interfaces c. implements D. modifies When a class implements an interface, ________. a. It does not have to implement the abstract methods of the interface. B. It has to implement at least one of the abstract methods of the interface but not all of them. c. It has to implement all of the abstract methods of the interface. The interface concept is Java's way of implementing __________ inheritance.

Explanation / Answer

Question 1

Answer: False

Question 2

Answer: False

Question 3

Answer: True

Question 4

Answer: True

Question 5

Answer: False

Question 6

Answer: True

Question 7

Answer: False

Question 8

Answer: False

Question 9

Answer: C. implements

Question 10

Answer: A. It does not have to implement the abstract methods of the interface

Question 11

Answer: multiple

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote