| 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
|
 |
 |
|
|
subject: please clear my doubt
|
|
|