boolean versus Boolean PLUS STATIC KEYWORD
807606Mar 4 2007 — edited Mar 4 2007If I want to initialize a variable I use boolean keyword. If I do not initialize a boolean variable with a value, which value will it hold TRUE or FALSE?
Is it possible to print let say in System.out.print(aBooleanVariable) the value of a boolean variable.
I always get error. Then I tried to put
// boolean static aBooleanVariable;
keyword static in initialization and compiler replies:
<identifier> expected
What is identifier?
What is the difference between boolean and Boolean?
Is the first prototype and the second class and when do we use "Boolean"?
I read in a book that static makes all its members the same. I don't understand that? Can someone please explain?
A friend told me that static is used for sparing with memory ... Is this true? Please someone help me.
Thanks so much in advance.
Sincerely, Grega Leskov�ek