The dereference operator or indirection operator, denoted by "*
" (i.e. an asterisk), is a unary operator found in C-like languages that include pointer variables. It operates on a pointer variable, and returns an l-value
equivalent to the value at the pointer address. This is called "dereferencing" the pointer. For example, the C code
increments the variable x
by using the indirection operator and a pointer to the variable x
.
Read more about Dereference Operator: Java, Composition, Other Syntax