References in java are glorified pointers. The only difference is that the "->" syntax is replaced with ".".
Type: Posts; User: Elysia
References in java are glorified pointers. The only difference is that the "->" syntax is replaced with ".".
What exactly do you mean by "how it would be done"?
Java and C# are not C++!
References MUST be bound to something (they cannot be NULL or rather nullptr, as it should be today). They cannot be reassigned either.
Java mixes pointers and references...