Page 1 of 1

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

Posted: Tue Apr 21, 2015 5:34 am
by girish_v
An empty switch block is a valid construct.

How is this correct?

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

Posted: Tue Apr 21, 2015 8:35 am
by admin
Did you try it?

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

Posted: Wed Apr 22, 2015 10:28 am
by girish_v
yes got the answer.. when i saw empty switch, i thought like this

switch();

But tried and got the answer..

switch(8){
}