Start learning →

Which primitive data type cannot be evaluated in a switch statement?

Along
Bbyte
Cchar
Dshort
Answer & Solution
Correct answer: A. long
Primitive long values cannot be evaluated within a Java switch statement.
Practise this question with Quill — ICSE Class 10 →

Keep practising Classes, Encapsulation and Scope

Browse all Classes, Encapsulation and Scope questions for ICSE Class 10, or explore more Computer Applications topics.

Start a Classes, Encapsulation and Scope lesson →