COP 3330 EXAM 2 OBJECT-ORIENTED
PROGRAMMING COMPREHENSIVE STUDY
GUIDE 2026
◉ Interfaces can be instantiated.
Answer: False
◉ Interfaces can contain only:
Answer: default methods
static methods
constants
nested types
method signatures
◉ Interfaces can be implemented by other classes.
Answer: True
◉ Interfaces cannot be extended by other interfaces.
Answer: False
,◉ When defining a method interface, it MUST be specified public,
otherwise it is only accessible where in a project?
Answer: package
◉ In a public interface body what are automatically considered
public even if the programmer doesn't put the public access modifier
on the associated method or member?
Answer: static methods
Constant declarations
default methods
abstract methods
◉ If an interface is declared public then a programmer can omit the
public access modifier for all abstract, default, and static methods.
Answer: True
◉ A programmer can define a reference variable with an interface as
its data type if the constructor call to the left of the equals sign (=) is
a class instance that implements that interface.
Answer: True
◉ If a class implements an interface and extends a class, the
resulting class can be an instance of:
, 1. The interface
2. The superclass
3. The subclass
Answer: True
◉ What is NOT a benefit of default methods in an interface?
Answer: Defining what the method should do when implemented
◉ What is exception short for?
Answer: exceptional event
◉ Why does an exception occur?
Answer: A network connection has been lost in the middle of
communications or the JVM has run out of memory
A file that needs to be opened cannot be found
A user has entered invalid data
PROGRAMMING COMPREHENSIVE STUDY
GUIDE 2026
◉ Interfaces can be instantiated.
Answer: False
◉ Interfaces can contain only:
Answer: default methods
static methods
constants
nested types
method signatures
◉ Interfaces can be implemented by other classes.
Answer: True
◉ Interfaces cannot be extended by other interfaces.
Answer: False
,◉ When defining a method interface, it MUST be specified public,
otherwise it is only accessible where in a project?
Answer: package
◉ In a public interface body what are automatically considered
public even if the programmer doesn't put the public access modifier
on the associated method or member?
Answer: static methods
Constant declarations
default methods
abstract methods
◉ If an interface is declared public then a programmer can omit the
public access modifier for all abstract, default, and static methods.
Answer: True
◉ A programmer can define a reference variable with an interface as
its data type if the constructor call to the left of the equals sign (=) is
a class instance that implements that interface.
Answer: True
◉ If a class implements an interface and extends a class, the
resulting class can be an instance of:
, 1. The interface
2. The superclass
3. The subclass
Answer: True
◉ What is NOT a benefit of default methods in an interface?
Answer: Defining what the method should do when implemented
◉ What is exception short for?
Answer: exceptional event
◉ Why does an exception occur?
Answer: A network connection has been lost in the middle of
communications or the JVM has run out of memory
A file that needs to be opened cannot be found
A user has entered invalid data