Wes Powers's Java Curiosities

Here are some interesting, and unexpected, curiosities of the Java programming language. See if you can figure out what's going on!

1. Passing Object Parameters to methods

2. Dynamic binding of object members

3. Object equality

4. Successful division by zero

5. Access to private members

6. Selection of Overloaded Methods

7. Instance variable initialization varies in a subclass










Do you have a Java curiosity that would be appropriate for this page? If so, send it to me ().