December 22, 1998

Java’s Alternative to Function Pointers

Although Java borrows a lot of concepts and syntax from C++, it also leaves out some of C++’s main features to meet its goal of simplicity. For example, Java excluded

The Lifetime of a Bound Temporary Object

You can safely bind a reference to a temporary object. The temporary object to which you bind the reference persists for the lifetime of the reference. class C { int