>>23
Like OO? Learn Ruby. Ruby is pure OO. Java is not pure OO because it has primatives, which Ruby has none of. Even the numeric literal 1 is an object with its own methods. Even the class Fixnum, which 1 is an instance of, is an object in and of itself.
The following all result in the value true:
1.is_a? Object
Fixnum.is_a? Object
(1.is_a? Object).is_a? Object
(1.is_a? Object).class.is_a? Object
Object.is_a? Object
Object.class.is_a? Object
In fact, just about the only thing you can send the message (:is_a?, Object) to would be BasicObject.new, which doesn't respond to the message is_a?, or even inspect for that fucking matter.
Meanwhile, In Javaland, integer literals and floating point literals are not objects. There are objects to wrap around them, but the literals are not encapsulated by those Objects.