I have read there is no pointer concept in Java, however I have also read several times that this is a keyword in Java that refers to the current object. I am still confused as to whether this can be called as a pointer or whether it’s not a pointer at all.
If it’s not a pointer, how can it refer to an object? How can it keep a reference of the current object? I have read that for C++, this is a pointer that holds the address of the current object.
Yes, every object-type variable in Java is in fact a pointer, but we call it a reference, most of the time. It’s still a pointer, since if it’s null and you dereference it, you get a NullPointerException.
There are pointers in Java, but there is no pointer arithmetic. You can not increment a pointer like you would do in C for example.
Also : JavaScript and Java are two very different languages. Your question shouldn’t be tagged javascript.