preload
Sep 30

java_logo_2Just a short note on an item that bugs me about Java.  In C++, I tend to use exactly three kinds of method parameters.

  • A const reference.  I don’t want to copy it, but I promise not to modify it, either.
  • A reference.  I might modify it.
  • A copy.  I might modify my local copy, but not the original.  I’m getting a copy, after all.

Easy peasy in C++.  In Java?  Uh, I pass all objects by reference. Continue reading »

  • Share/Bookmark
Tagged with: