Page 1 of 1

About Question enthuware.ocajp.i.v8.2.1257 :

Posted: Thu Mar 26, 2015 6:15 am
by alkour
Option C.
Not clear: "An empty switch block is a valid construct".
Does it make sense?

I tried to compile.
switch () {
case 'a' :
}

It illegal expression. So it can not be true.

Re: About Question enthuware.ocajp.i.v8.2.1257 :

Posted: Thu Mar 26, 2015 6:23 am
by admin
It says empty switch block. Not empty switch condition.
switch(variable){
}

Re: About Question enthuware.ocajp.i.v8.2.1257 :

Posted: Mon Mar 30, 2015 5:18 am
by alkour
Thank you.