I'm new to Java language & was previously working with C++. I'm totally confused as to what is the mechanism of passing variables having
1) built-in datatypes
2) array datatypes
3) user-defined objects as datatypes
to any function. Is it pass by value or reference ? If arguments can be passed in one of the ways, what is the manner in which they can be passed by the other mechanism ? Do pointers or references exist in Java ?