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
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: please clear my doubt
 
Similar Threads
shows compile error why??
Malformed URL Exception
Complie_time_error
Passing a Variable value from one Method to another Method
handle Exceptions from DB