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:
Sajan,
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.
Good luck,
-Peter
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:
Hi,
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 )
System.out.println("Prints");
if(l > 0 && m < 5 | | m >50 )
System.out.println("Doesn't Print");
Thanks.
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.