Solve Error “int cannot be dereferenced” in Java
Dereferencing means accessing an object from the heap using a reference variable Or we can say It is a process of accessing the referred value by a reference. Dereferencing’s main purpose is to place the memory address (where the actual object presents) into the reference. Example:
1 2 |
Object ob = new Object(); String st = ob.toString(); // 'ob' is dereferenced. |
If the reference has the null value, at …
Solve Error “int cannot be dereferenced” in Java Read More »