Originally posted by Michael Mendelson:
[B]Sajan, this code worked for me...
I removed the package references for simplicity. I suggest deleting all A.class and B.class files and trying again.
Or, for simplicity's sake, try compling them from the same file.
[This message has been edited by Michael Mendelson (edited January 13, 2001).][/B]
Originally posted by Peter Tran:
If you want to learn inner classes, write a lot more GUI applications using Swing. Understanding inner classes and how they're used in Swing development is almost a requirement. I say almost because you can get away without using inner classes, but your code probably won't be as elegant and as easy to read.
Originally posted by Michael Ernest:
It's possible to extrude the appearance of dynamic downcasting out of Java, but it's not natively supported.
Originally posted by Mukti Bajaj:
Can someone please explain me this code....according to me it should print both the statements.
As && is true if both the operands are true and will be evaluated first as per precedence order.
And | | is true if either or both the operands are true.
int l = 4;
int m =14;
if(l > 1 && m < 6 | | m > 0 )
if(l > 0 && m < 5 | | m >50 )
Originally posted by James Baud:
I've scanned "Beginning Java Objects" at the local bookstore and I wish I had this book instead of another Java book I've invested in. But if it's a choice between a free treasure like "Thinking in Java" and something 1/4 of one's salary (I'm tempted to ask is that weekly, monthly ..?), well you get the picture
Speaking for myself, if I could honestly tell myself that I have mastered my TIJ, KAM and Fowler's UML Distilled books then, I don't see a need for any other Language reference.