Assume that the following code exists inside a method of the class myclass, and that this code compiles without errors: int result = book.getyearpublished(); where book is an object of the book class. which of the following is not true about the getyearpublished method? it is a mutator method. it is a public method in the book class. it returns a string.

Solved
Show answers

Ask an AI advisor a question