At what instance and what is the use of this printStackTrace() method. If possible explain with a code ??
Have the determination of mirror which never fails to reflect in spite of being broken into pieces.<br /> <br />Kiss the hands you cannot bite.<br /> <br />An Optimist is one who starts taking a bath when he accidentally falls into the water.
At what instance and what is the use of this printStackTrace() method.
Who can told you better than Java Docs (API) , here
code :
You can try it at home, make a simple program which explicitly throw some exception , handle this exception in catch block and call printStackTrace() on exception object ..