OOD Trivia
OOD Trivia
A _____ is a template
from which objects can be
instantiated
A ______ is a routine defined
within a class to implement a
behaviour
An _____ class cannot
be instantiated
Java does not allow for
_____ inheritance
All classes in Java
implicitly extends the
_____ class
Objects contain both
_____ and _____
_____ methods belong
to the class
_____ loops will
execute at least once
Java best practices dictates
the use of _____ notation for
variables and method names
What can Java
bytecode run on?
What does JVM stand for
and what does it do?
Name a Java IDE
other than Eclipse
What is the yellow and red
underlining in Eclipse and
why do we get them?
What are the access
modifiers in Java?
What can the final
keyword be applied to?
What is the syntax for the
logical operator AND in
Java?
What is the output of the following?
int n = 3;
switch(n) {
case 1:
System.out.println(“abcd”);
break;
case 2:
System.out.println(“efg”);
case 3:
System.out.println(“hijk”);
default:
System.out.println(“xyz”);
}
What is the output of the following?