4 ms·
This! People say java passes by reference sometimes, but in C++ the references can't be null whereas in java they can.
by goalieca 12y ago
This! People say java passes by reference sometimes, but in C++ the references can't be null whereas in java they can.
- theyoungestgun 12y agoCpp and c also call things volatile for entirely different reasons than Java. These are two distinct ecosystems. They use the same terminology with different meaning. That perhaps is confusing, but definitely doesn't make one or the other incorrect.
- Tobani 12y agoI think this is the big thing. Maybe java references arent cpp refs. Is there a proper name for an abstract construct that refers to something else? Maybe reference?