Uncover your misconceptions by answering conceptual questions
Conceptual Self-Check
Language:
Java
Concepts: Parameter Answer 7 Concept Questions
In Java:
?
?
I am not sure what's right.
In Java:
Stack frame of caller includes variables for callee's formal parameters
Stack frame of caller includes variables for callee's formal parameters
In Java:
Formal constructor parameters are completely separate from instance variables
Formal constructor parameters are completely separate from instance variables
I am not sure what's right.
In Java:
Formal constructor parameters are equivalent to instance variables
Formal constructor parameters are equivalent to instance variables
In Java:
Immutable classes can have constructor/method parameters that are not final
Immutable classes can have constructor/method parameters that are not final
I am not sure what's right.
In Java:
Immutable classes need final constructor/method parameters
Immutable classes need final constructor/method parameters
In Java:
?
?
I am not sure what's right.
In Java:
To instantiate a generic type, one needs to specify type parameter names as well as types
To instantiate a generic type, one needs to specify type parameter names as well as types
In Java:
Type parameters of generic types can be assigned primitive types
Type parameters of generic types can be assigned primitive types
I am not sure what's right.
In Java:
?
?
In Java:
A static method call is dispatched polymorphically at runtime based on the argument types
A static method call is dispatched polymorphically at runtime based on the argument types
I am not sure what's right.
In Java:
?
?
In Java:
If a class has a method that has a local variable, parameter, or return value with the class as its type, the class is a recursive type
If a class has a method that has a local variable, parameter, or return value with the class as its type, the class is a recursive type
I am not sure what's right.
In Java:
?
?