I was trying to see how instanceof operator in Java works and am facing a very odd issue.
public static void main(String[] args) { Map m = new HashMap();
Please refer to JLS spec mentioned over here http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.20.2.
This has been answered very well here instanceof - incompatible conditional operand types