Snippets tagged “printstream”
1 snippet uses this tag.
- What is the use of printStackTrace() method in Java?Java
The printStackTrace() method is a method of the Throwable class (the parent class of Exception) that prints the stack trace of the exception to the standard error stream.