Introduction We know that objects as well as primitive data types can be passed to methods as a parameter. But there is a major difference between passing a primitive data type and object. When we pass a primitive, we just…
Introduction We know that objects as well as primitive data types can be passed to methods as a parameter. But there is a major difference between passing a primitive data type and object. When we pass a primitive, we just…