wrapper classes

1 topic · 1 source

Technology› Programming

Java

Java's primitive types are not object types. The wrapper classes are defined in the java.lang package. They consist of a class for each primitive type: Boolean, Byte, Character, Double, Float, Integer, Long and Short. These classes provide methods to parse strings containing primitive values, and turn primitive values into strings. The Double and Float classes also provide methods to detect special bit patterns for floating point numbers, representing values such as NaN, +infinity and -infinity.

Cite this definition

APA
MLA
Chicago