Two methods that are expected to be in all Java classes are:

(a) getName and setName
(b) toString and equals
(c) compareTo and charAt
(d) toLowerCase and toUpperCase

(b) toString and equals

Computer Science & Information Technology

You might also like to view...

On the Tab Selector button, the ________ tab is represented by a short vertical line

Fill in the blank(s) with correct word

Computer Science & Information Technology

Answer the following questions true (T) or false (F)

1. In a switch statement, the default case is always executed. 2. Not including the break statements within a switch statement results in a syntax error.

Computer Science & Information Technology