I was taking brogden's hardest questions simulation and had a question. It asks for the instance methods of the Thread class. It offers toString() as a correct option. toString is a method of class Object not thread. I understand Thread inherits from Object, but this question seems ambiguous. For general advice on answering exam questions would all methods of all superclasses of a class be considered methods of the class?
Good question. I don't think you'll find trick questions like this one in the real exam. Although you should know of course, <CODE>inheritance</CODE>. Which dictates that a non-private method in a class is inherited by all subclasses in the same package (if the original access is package) or by all subclasses if the access is protected or public.
Tony Alicea Senior Java Web Application Developer, SCPJ2, SCWCD