3 ms·
Primitives are cheap to copy, objects may not be. Edit: I've never used Java that much. My experience with passing things to functions/methods is primarily in
by 16s 16y ago
Primitives are cheap to copy, objects may not be.
Edit: I've never used Java that much. My experience with passing things to functions/methods is primarily in C++. When I say primitive types, I mean char or int.