David Blankley wrote:
> 
> I went on an interview last week and was thrown this question:
> 
> what is wrong/sub-optimal with the following code:
> 
> public class someClass {
> /*
> * some methods, etc
> */
> public boolean myBool = false;
> }
> 
> Of course, since booleans default to false,

Sez who?  Maybe your jre happens to run that way, but IIRC the behavior
is undefined. If I wasn't so lazy I would look it up.


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to