Font size
WorksheetsPreTrainingWeek3Content
Total questions: 11
Worksheet time: 9mins
Which of the following is not included in the exceptions hierarchy?
Throwable
Exception
Serializable
Error
What are the two main classifications of exceptions? (pick 2)
Runtime
Compile Time
Build Time
Deploy Time
Which of the following is not an example of Polymorphism?
Method Overriding
Method Overloading
Method Chaining
Object Casting
Which of the following is not a pillar of OOP
Polymorphism
Polydactylism
Inheritance
Abstraction
What is the basic purpose of Encapsulation?
Hiding complexity of implementation
Controlling access to states and behaviors
Providing a relationship between classes
Suppose you have an ArrayList called intList.
Which of the following returns the second element from intList?
intList.pop(1);
intList.peek(1);
intList.get(1);
intList.get(0);
Which of the following would NOT be considered valid?
A try block
A catch block
and
A finally block
A try block
and
A finally block
A catch block
and
A finally block
A try block
and
A catch block
Which keyword is used to make a class inherit from another?
inherits
extends
implements
uses
variables declared in an interface are implicitly...
public static final
protected final
private static
public abstract
Suppose the Dog class extends Animal.
The bark() method is defined in the Dog class.
Which code snippet will produce an error?
Upcasting is done _____
Downcasting is done _____
Explicitly, Implicitly
Implicitly, Explicitly
manually, automatically
first, second
