User Avatar

Saurabh63659

2 Years 3 Months ago

Date: 23-06-2020

In Switch statement each case Instance value must be?

Answer: Constant i.e. c 

Switch case must have constants like : Integers, double, characters etc in its instance value

Example : case 'a' or case 'A' or case 1 or case 1.0

You can read more about it here -

User Avatar
User Avatar
Adminprepinsta_owner

Answer: Constant i.e. c