3 ms·
That's just the syntax failing to support such a nice way of accessing those objects. Packages, classes, and methods are objects. Of course, primitives are no
by mike_organon 18y ago
That's just the syntax failing to support such a nice way of accessing those objects. Packages, classes, and methods are objects.
Of course, primitives are not objects, but autoboxing helps.
- weavejester 18y agoSure, they're represented as objects in the JVM, and you can access this via refection; but they're not treated as objects in Java's syntax. I'd argue that OOP is a property of a language's syntax, rather than how it is internally represented.