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.
That is a really big piece of pie for such a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton