Section 1

Preview this deck

T/F two variables can point/reference to the same class and have the same location in memory

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 14, 2020

Cards (14)

Section 1

(14 cards)

T/F two variables can point/reference to the same class and have the same location in memory

Front

true

Back

T/F constructors cannot be marked static

Front

true

Back

what is the default value of a string

Front

"null"

Back

which method is used to print the current state of an object as opposed to the location in memory

Front

toString()

Back

what specifies the behavior for objects of a class in java

Front

methods

Back

T/F to use wrapper classes you must import the utility package from the api

Front

false

Back

T/F if an object is null, the object doesn't point to a class

Front

true

Back

which of the following should be used for an object reference variable that does not refer to any object

Front

null

Back

what is the data type of an object

Front

name of the classes it references

Back

T/F integer and string are reference types

Front

true

Back

T/F every class has a constructor that is used when you instantiate an object

Front

true

Back

T/F instance methods must be marked private to protect the behavior of an object

Front

false

Back

T/F objects are used to reference static variables and methods

Front

false

Back

which modifier gives access to instance variables/methods from a different class without creating an object

Front

static

Back