Multiple Choice
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
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q7: Mutator methods can return integer values indicating
Q8: Accessor methods:<br>A)return something equivalent to the value
Q9: A set method is:<br>A)an accessor method<br>B)a mutator
Q10: An invocation of a method that returns
Q11: A program whose only task is to
Q13: Discuss the public and private modifiers in
Q14: Only the default constructor has the this
Q15: The body of a method that returns
Q16: In Java,a block is delimited by:<br>A). )<br>B).
Q17: Write preconditions and postconditions for the power