This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Hi everybody, i am new here. i saw "true" and "false" do not belong to the keywords of JAVA while i cannot use them for variable names. So i wonder what do the "true" and "false" belong to? Are they just used for boolean-values and cannot be used anywhere else? And is there a naming rule says you cannot use them for names? Thanks
I read that 'boolean' doesnt have a size (like int-4, long-8 etc). So how does the compiler store these values in the class file or on the stack/heap.
Can someone throw light on this.
Thanks in advance, -Raj
Joined: Sep 26, 2006
As "Head First Java" says, variables are stored in heap/stack according to whether it is used as instance variable(in class) or local variable(in method). But i dunno the size, and i think that does not matter much.