I am going through a socket program. In it, printStackTrace is called on the IOException object in the catch block. What does printStackT
printStackTrace
IOException
printStackT
printStackTrace() tells at what line you are getting error any why are you getting error.
printStackTrace()
Example:
java.lang.ArithmeticException: / by zero at MinNumber.main(MinNumber.java:8)