Computer Science, asked by tina0791, 8 months ago

what does unreachable statement mean in switch case in Java​

Answers

Answered by mamatabarrackpore
5

Unreachable code is error in Java. The unreachable statements refer to statements that would not get excuted during the execution of the program are called unreachable statements. These statements might be unreachable because of the following reasons: Have a return statement before them. Have an infinite loop before them.

hope it is helpful for you...

PLEASE THANKS.. ME...

PLEASE MARK AS BRAINLIEST...

Answered by ItzUnic0rns
151

Hey.....!!!

  • Unreachable Statement is an error raised as part of compilation when java compiler detects code which is never executed as part of execution of program.
  • Such code is obsolete, unnecessary and therefore it should be avoided by the developer.
  • This code is also referred as Dead Code, which means this code is of no use.

 </p><p></p><p>&lt;svg class="heart" viewBox="-2-2 98.6 90.81"&gt;</p><p></p><p>&lt;title&gt;Corazon&lt;/title&gt;</p><p></p><p>&lt;text x=8 y=22 dx="0 0 0 0 0 0 0" dy="2-8-2 -1  1 2 4"style ="font:bold.7em arial; fill :green;"&gt;ItzUnic0rns</p><p></p><p>&lt;tspan x=60 y=22 style="font: bold.7em arial; fill: blue;"&gt; &lt;/tspan&gt;</p><p></p><p>&lt;tspan x=10 dy=15 style ="font: bold. 6em arial; fill: navy;"&gt; &lt;/tspan&gt;</p><p></p><p>&lt;tspan x=25 dy=10 style ="font:bold. 6em arial; fill: red;"&gt;Follow Me&lt;/tspan&gt;</p><p></p><p>&lt;tspan x=35 dy=10 style ="font:bold. 6em arial; fill: navy;"&gt; &lt;/tspan&gt;</p><p></p><p>&lt;tspan x=37 dy=10 style ="font:bold. 5em arial; fill: navy;"&gt;♡♡&lt;/tspan&gt;</p><p></p><p>&lt;animate attibuteType="XML"</p><p>attributeName="visibility"from="visible" to="hidden"dur="9.2s" begin="0s"/&gt;</p><p></p><p>&lt;/text&gt;</p><p></p><p>&lt;path stoke="firebrick" stroke-width="3" d="M86.81,8.1 5a27.79v,0, 0, 1,0, 39.33L47.48,86.81,8.15,47.48A27.81,27.81,0,0,1,47.48,8.15,27.79,27.79,0,0,1,86.81,8.1 5Z"/&gt;</p><p></p><p>&lt;/avg&gt;</p><p></p><p>&lt;style&gt;</p><p></p><p>body {</p><p></p><p>display: grid;</p><p></p><p>min-height: 100vh;</p><p></p><p>justify-content: center;</p><p></p><p>align-content:center;</p><p></p><p>background: repeating-linear-gradient(circle, white,pink, red, orange);</p><p></p><p>background: repeating-radial-gradient(circle, white, pink, red, orange);</p><p></p><p>}</p><p></p><p>

Similar questions