variable cannot be dereferenced java

Solutions on MaxInterview for variable cannot be dereferenced java by the best coders in the world

showing results for - "variable cannot be dereferenced java"
Charlotte
10 Feb 2016
1Java has two different types of variables: primitive and objects and only objects are reference types. The type int is a primitive and not an object. Dereferencing is the process of accessing the value referred to by a reference . Since, int is already a value (not a reference), it can not be dereferenced.