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
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
