The concept of class variants of basic types is called
"boxing", because the
Title-Cased class is like a box around
the primitive object.
However
the classes mentioned by the witness are almost
certainly referenced and
required by the language
specification (which I haven't read
yet)
java.lang.String because quoted strings in the Java
Language
syntax as defined as belonging to that class and
have no primitive
type.
java.lang.Double and the other boxing classes due to
automatic
boxing by the language where necessary. I do not
recall the details of when
this happens, but it is a major
feature introduced in Java 5 and the Java 5
language
specification would not be complete without enumerating
which
primitive type gets boxed into which class.
Note that Java ME is stuck
at a much older Java version
than the other editions, which makes it a pain to
work with.
[ Reply to This | Parent | # ]
|