Question 738: switch(x) { default: System.out.println("Hello"); }Which two are acceptable types for x?bytelongcharfloatShortLong
tcs
wipro
infosys
general
aptitude
flow-control
java-programming
Switchstatements are based on integer expressions and since both bytes and chars can implicitly be widened to an integer, these can also be used. Also shorts can be used.ShortandLongare wrapper classes and reference types can not be used as variables.