Inheritance
Object class
More Inheritance
Test Automation with JUnit
Miscellaneous
100
Java keyword indicating that one class inherits from another.
What is "extends" ?
100
This is the name for the universal superclass in Java.
What is "Object" ?
100
This is the term for the declared type of a polymorphic variable. It is what the compiler uses to compile the project.
What is static type ?
100
A type of testing that is not automated. It involves running tests interactively using the Object Bench.
What is manual unit testing ?
100
Probably the most common technique used to understand and debug programs.
What is the print statement ?
200
Java keyword indicating a call from the subclass constructor to the superclass constructor.
What is "super" ?
200
Default implementation of this method prints out the memory location of the object.
What is "toString()" method ?
200
This is the term for the run-time form of a polymorphic variable. It may involve subclasses of the declared type.
What is dynamic type ?
200
This term refers to rerunning tests that have previously passed. This is done in order to verify that a change or upgrade to an application does not break existing functionality.
What is regression testing ?
200
This class would need to be used to store a primitive int piece of data in an ArrayList.
What is Integer class ?
300
This term refers to the fact that a variable can hold objects of different types.
What is polymorphism ?
300
The default implementation of this method makes a test for reference equality.
What is "equals()" method ?
300
This term describes a method in a child class that has the same name and signature as the method in the parent class.
What is overriding ?
300
This is an extended version of a normal method result window. It allows you to specify what the result of a method call should be.
What is an assertion ?
300
Java operator used to rediscover the dynamic type of an object.
What is "instanceof" ?
400
This type of data in Java is separate from objects and does not have any methods.
What are primitive data types ?
400
There is an important link between the equals() method and this method but a detailed discussion is beyond the scope of the text.
What is "hashCode()" method ?
400
In order to call a method in the parent class you need to prefix the call with this Java keyword.
What is "super" ?
400
This special method lives in the test class and is automatically called before every test method is called.
What is setUp() method ?
400
This class design rule states that each class should represent one single, well-defined entity.
What is cohesion ?
500
Another name for a child class.
What is a subclass ?
500
An equality test in Java that asks whether two objects are the same internally.
What is "content equality" ?
500
This type of visibility allows subclass access to a superclass data field.
What is "protected" visibility ?
500
The name for an object or a group of objects used in more than one test.
What is a fixture ?
500
This term is used for restructuring existing classes and methods to adapt them to new functionality or requirements.
What is refactoring ?
M
e
n
u