Assume that e is a variable of type Exception that has been declared and that references an Exception object. Write a statement that displays to standard output the message associated with e
LANGUAGE: JAVA
CHALLENGE:
Assume that e is a variable of type Exception that has been declared and that references an Exception object. Write a statement that displays to standard output the message associated with e
SOLUTION:
System.out.println(e.getMessage());
Posted in Java, Learn To Code