Yes Or No | Sololearn: Learn to code for FREE!


Yes Or No c++ all if elseif else statements replaced by switch? it java support pointer or not?

7/2/2018 7:10:57 PM


8 Answers

New Answer


Thug life No, switch case can be used as a substitute for if else cases.


yes you can but I will prefer to use if elseif else when you have 3-4 cases but when you have more than 5 Case I will prefer switch because it save time.


Java does not support pointers


java does support pointer "this" is a pointer that we use


i dont know but i think not


in c++ you can still use elseif not sure about java


in java we can also use elseif.