Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
Java All : Switch Based Selections


Exam Papers Problems

Difference Between Switch and If-Else #3918

( As In Exam - ICSE2014 )

Give two differences between switch statement and if-else statement.

Give two differences between switch statement and if-else statement.

if-else-if to switch-case #4061

( As In Exam - ICSE2018 )

Convert the following if else if construct into swit

Convert the following if else if construct into switch case
if( var==1)
System.out.println(“good”);
else if(var==2)
System.out.println(“better”);
else if(var==3)
System.out.println(“best”);
else
System.out.println(“invalid”);



Exam Paper Problems:2 
Back