My Java book explains that to use objects, we can assign them to reference variables. How is that different from a pointer to an object? Does Java have pointers?
T
pointer only contain the address but Reference does not contains address if we say frankly then address of the object is assigned to the index or we say can hash code and case code is given to the reference variable if we will see the content of the reference variable it starts with class Name @ and after it some Hexadecimal Code. These nos are not address it is a index value or hash code.
second point we can not perform any Arithmetic operations on values the Content of reference value