Originally posted by maha anna:
I am posting this on behalf of Ajith.
- int i; if (i = 2) ALWAYS evaluates to true.
(basically a valid assignment in if() clause )
Incompatible type for if. Can't convert int to boolean.
There is a slight correction...non-static inner class can have static variables, provided they are also declared final.
Originally posted by Ajith Kallambella:
You can read JLS online here http://java.sun.com/docs/books/jls/html/index.html
You can also download JLS in the HTML format.