Potpourri Flashcards
1
Q
Overloaded methods definition:
A
Methods of the same class with the same name but different numbers or types of parameters.
2
Q
the call “substring(2, 2)” returns:
A
an empty string
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