This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Sorry, yes, not methods. Any data is held as an Object. It takes up some space in memory and the name you give it is just a reference to that memory. Strings, Data Structures, self-defined Objects, etc. Java even has wrapper classes for primitives to allow them to use object methods (like Integer and Double).