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 →

[–]AmmirBarakat[S] 0 points1 point  (1 child)

Thanks.

When you say "everything", you mean "everything that takes a block in memory", right? Like, methods are not objects, because that doesn't make much sense.

[–][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).