Unit 5 Quiz Flashcards
An abstract method declaration can be private?
T or F
False
______ numbers use digits that can be one of 16 values — 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E and F.
Hexadecimal
What does the acronym OOP stand for?
Object Oriented Programming
_______ Code is ugly inelegant code that provides a workaround for a problem.
Kludgy
_______ is the ability for a particular method call to perform different operations at different times?
Polymorphism
______ is what the JVM does in order to match up a polymorphic method call with a particular method?
Dynamic binding
Which statement below would output: 123456?
String var1 = “123”
int var2 = 456;
a. System.out.println(var1+var2);
b. System.out.println(“123”+var2);
c. System.out.println(var1+456);
d. all of the above
e. none of the above
All of the above
By definition, when a method overrids another method, the two methods must have the exact same signature.
T or F
True
The ______ class is the ancestor of all other classes?
Object
An abstract method declaration is required to be private, and the definitions of the method that appear in descendant classes are required to be private as well.
T or F
False