In a catch statement, what does the following code do?
System.out.println(e.getMessage());
a. It prints the code that caused the exception.
b. It prints the stack trace.
c. It prints the error message for an exception.
d. It overrides the toString method.
c. It prints the error message for an exception.
Computer Science & Information Technology
You might also like to view...
In a tab delimited file, ________ separate the data
A) hyphens B) spaces C) tabs D) commas
Computer Science & Information Technology
Two numbers are relatively prime if their greatest common divisor is ______.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology