Classes Flashcards
1
Q
EasyReader keyboard = new EasyReader();
keyboard is a location in memory where a ….. is stored because its type is a ____?
A
pointer to an object. class
2
Q
is the String a class, yes or no?
A
yes
3
Q
what is unique about String
A
it’s only sort of object that can be instantiated without the ‘new’ keyword
4
Q
method overloading
A
when multiple methods can have the same name with different parameters
5
Q
basic type variables store…
A
an actual value
6
Q
class variables store a…
A
pointer to an object
7
Q
“Sheffield”.substring(0) returns
A
Sheffield