aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes please clear my doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "please clear my doubt" Watch "please clear my doubt" New topic
Author

please clear my doubt

Raja seemakurthi
Greenhorn

Joined: Jun 28, 2007
Posts: 17
why am i getting compile time error saying, unreachable statement in line number //1
please explain.



Thanks,
Raja
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

That's because there will always be an exception thrown before it and therefor the return statement will never be reached.
Just remove the return statement


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Bhagat Singh Rawat
Ranch Hand

Joined: Apr 04, 2009
Posts: 93
Control will never go at .

Brainbench Java 2.0 Fundamentals, J2EE 1.4
http://www.brainbench.com/transcript.jsp?pid=8192792
 
jQuery in Action, 2nd edition
 
subject: please clear my doubt