In java, when primitive data types are supplied in the method calling, it is call by value.
--If the parameters of the method are of class type, it is call by reference.
--Only references are passed as the parameters to the method, not the object.