Originally Posted by
Gunilla
One thing that you forgot to list in that is the const keyword in C++ that does not exists in Java.
The const issues in C++ are avoided in Java by convention. You pass only handles to objects and local copies are never made for you automatically. If you want the equivalent of C++'s pass-by-value, you call clone () to produce a local copy of the argument (although the clone () mechanism is somewhat poorly designed). There's no copy-constructor that's automatically called.
To create a compile-time constant value, you say, for example:
Code:
static final int size = 255;
static final int bsize = 8 * SIZE;
Bookmarks