Skip to content, Skip to search

Changes

Tips for C++ developers

378 bytes added, 17:10, 16 March 2010
final is not const
Likewise, Java comes with useful classes implementing neat things such as priority queues (since Java 1.5).
 
 
== 'final' does not mean 'const' ==
 
In C++, when an array is declared <i>const</i>, none of its entries can be edited in any way. But in java, when a variable that points to an array is declared <i>final</i> only that variable cannot be assigned. Any entries of the array (or collection, or whatever container) are editable, and the entry slots themselves may be reassigned.
= Conventions =
Emailconfirmed, uploaders
653
edits