How to Display Exception
Example Below :
---------------------------------------------------------------------------------------------------------------
try {
throw new RuntimeException("hu?");
} catch (Exception e) {
System.out.println(e.getMessage());
}
---------------------------------------------------------------------------------------------------------------
No comments:
Post a Comment