Re:BlueJ – A Lightweight Java IDE
by the_doctah on Thursday September 15, 2022 @10:23AM
(#32852498)
Everything is literally a descendant of Object...
[ Parent
| on HN ]
Yes, and in Java, capital-O Object is primarily used as a class, not as an object that you work with directly!
Alan Kay himself said he regrets coining the term as "object" oriented, and wishes he had emphasized "messages":
And Object, in this case (big O), is the name of a class.
Not everything is an object, as someone said, there are also primitives.
There are many other "things" in Java that are not objects (operators, statements, etc.).
Kotlin does set some of this straight. Everything inherits (indirectly) from the Any class. And primitives do not exist in Kotlin (as in Ruby or Smalltalk).
Havent used Java for ages but are ints amd double for example really objects? Iirc they are primitives