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

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "please clear my doubt" Watch "please clear my doubt" New topic

please clear my doubt

Raja seemakurthi

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

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
jQuery in Action, 2nd edition
subject: please clear my doubt