Potpourri Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Overloaded methods definition:

A

Methods of the same class with the same name but different numbers or types of parameters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

the call “substring(2, 2)” returns:

A

an empty string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When calling the System.out.print and System.out.prinln methods, these methods handle an object by calling its toString method. If your class does not have a defined toString method and inherits a generic toString method method from Object, _____________________ will get returned

A

the object’s class name followed by the object’s address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly