A, C and D are incorrect.
A is incorrect because the getMessage method returns only the basic information of an exception being caught, not the class name—for example, “… (The filename, directory name, or volume label syntax is incorrect)”.
C is incorrect because there is no getData method.
D is incorrect because there is no toOuput method.
|