Quiz
3
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (20)
1An ArrayList<T> collection uses a linked list as its underlying data structure.
- ATrue
- BFalse
2An ArrayList<T> collection uses [ ] along with an index value to access its members.
- ATrue
- BFalse
3An ArrayList<T> collection type has an attribute called "length" that provides the occupied size of the collection.
- ATrue
- BFalse
4An ArrayList<T> collection is faster and more memory efficient than an array.
- ATrue
- BFalse
5A class that implements an interface must have a concrete implementation of every abstract method in the interface.
- ATrue
- BFalse
6If a class contains at least one abstract method then the class must be declared as abstract.
- ATrue
- BFalse
7If a class implements the Comparable<T> interface then it can be sorted by built-in sorts already coded in the Java API.
- ATrue
- BFalse
8Interfaces can extend other interfaces.
- ATrue
- BFalse
9An abstract method does not have any concrete code in a set of { }. It does not even have { }.
- ATrue
- BFalse
10An inner class must be declared private and static.
- ATrue
- BFalse
11An inner class can access the attributes of the outer class even if they are private.
- ATrue
- BFalse
12Java allows multiple inheritance.
- ATrue
- BFalse
13"Early binding" is satisfied at runtime.
- ATrue
- BFalse
14Object is the parent class for all objects in Java.
- ATrue
- BFalse
15A method declared as "final" cannot be overridden.
- ATrue
- BFalse
16"Late binding" is the process of binding a method to an object at runtime. The method bound is determined by the actual type of the object at runtime.
- ATrue
- BFalse
17When used in a generic class header, the notation "<T extends Root>" means that any type that is of type Root or of any class that extends Root can be provided as a type to this generic class.
- ATrue
- BFalse
18The type "T" in "GenericClass<T>" cannot be instantiated within the definition of the generic class.
- ATrue
- BFalse
19A class can contain one or more generic methods even if its class header is declared in the normal way, like "public class IHaveGenericMethods { }", for example.
- ATrue
- BFalse
20When declaring a generic method, the notation "<T>" must precede any use of the type T in the rest of the method header.
- ATrue
- BFalse
Information
- Description
- Quiz on 3, created by Ricky Zhang on 18/04/2018.
- Author
- Ricky Zhang
- Language
- English
- Views
- 17
- Rating
- No ratings yet Rate this quiz