SPIRO THE TECH GURU

Back

different ways to print exception message in java

By Admin on

  • In Java there are three ways to find the details of the exception .
  • They are 
  1. Using an object of java.lang.Exception
  2. Using public void printStackTrace() method
  3. Using public String getMessage() method.



SPIRO Google Plus