A reference, in computer terms, is a pointer to an object. … References are used to pass parameters when the values of an object are to be changed continuously by means of a subroutine. In the Java programming language, a distinction is made between hard and soft references.