Can we pass a primitive type by reference in java? How Primitive types can be passed by reference. 1. By storing the primitive type value in an array of single element and passing it. 2. By wrapping the primitive type into its corresponding wrapper class and passing it.
|