Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Core Java - Interview Questions and Answers for 'Unreachable code' - 1 question(s) found - Order By Rating|
|Ans. Unreachable code is a code segment that can never be executed in any case. For example -|
int x = 5;
In this code , 2nd line will return the control out of the method and hence 3rd line will never get executed and hence is unreachable code. This will be caught at compile time only.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  unreachable code|