In java, this is not true. For example, int is actually primitive. In java, everything is Object , which extends Object . Everything else is not .
So, for example, you cannot manipulate namespaces (packages in java terms), for example, objects, but in Erlang or Clojure you can.
Although java provides an autoboxing function that can translate primitives to objects. In your case, if you say
Integer a = 5;
java puts 5 in the Integer link. If you want to read about autoboxing, click here: autoboxing docs . Objects in java: Objects
If you are looking for a language in which everything is an object technically, you can try Common Lisp, for example. In Lisp, even T (meaning boolean true) is an object.
source share