Originally Posted by
shubhang
Please have a look into the code.
Why? Is there something wrong with it? If so, what specifically?
Originally Posted by
shubhang
Please also explain the function of
There is no such function as you have written it. There is, however, a
printStackTrace() method on Throwable. Read that API link to see what it does.