Interview Hack
Home
About
Games
Levels
Java Quiz - Level 2
1. Keyword to inherit a class?
inherits
extends
implements
super
2. Keyword for interface?
extends
interface
implements
inherit
3. Not an access modifier?
public
private
protected
friend
4. Method overloading?
same name, same params
same name, diff params
method inside method
method in many classes
5. Parent of all classes?
Main
Base
Object
Root
6. Divide by zero exception?
NullPointerException
IOException
ArithmeticException
IndexOutOfBounds
7. No duplicates allowed?
ArrayList
HashMap
HashSet
LinkedList
8. Polymorphism?
many forms
many objects
reuse code
many vars
9. Abstract class?
only abstract methods
no constructors
abstract + normal methods
cannot extend
SUBMIT EXAM