Question: which of these conditional statements tests only for equality in java?
Answer: switch statement can only test for equality, whereas if statement can evaluate any type of boolean expression. it is possible to create a nested switch statements. Answer: two case constants in the same switch can have identical values.