Interview Questions

Is Java Pass By Reference?

No. Java used Pass by value approach i.e, Java passes Object references as values to the method parameters hence the original object and the copy of the original object (ie, parameter value) refers to the same Java object in the memory.