Are Java objects pointers?
Ans : No; Java objects are objects (typed containers for data plus associated methods), but the Java language lets you access objects only via references. The Java runtime is filled with objects-created by the system and by your program. An object is a programming entity that holds data and is associated with a class; the class defines both the data and services that its objects support. Although objects are the heart of your Java program, you never get direct access to them. The Java language lets you handle only object references-values that refer to objects but completely lack arithmetic (pointer-like) properties . Whenever a variable, method argument, or method return value appears to work with an object, it is in fact working indirectly through an object reference.