O'Reilly logo
  • First Last thinks this is interesting:

In Java, all objects are passed by reference, whereas in C++, the default behavior is to pass objects by value.


Cover of Programming Interviews Exposed: Secrets to Landing Your Next Job, 3rd Edition


This is often asked in phone interviews. Java is always by reference. C++ is by value but you can pass in by reference using the reference operator.