Content deleted Content added
m unparenthesize (programming language) |
added →Atomic wrapper classes |
||
Line 30:
Although it is not a wrapper class, the {{Javadoc:SE|java/lang|Void}} class is similar in that it provides an object representation of the [[void type|<code>void</code>]] return type. The <code>Void</code> class is an uninstantiable placeholder class used by the [[Java Platform, Standard Edition#java.lang.reflect|java.lang.reflect]] [[application programming interface|API]] to hold a reference to the {{Javadoc:SE|java/lang|Class}} object representing the [[Java keyword]] <code>void</code>.
== Atomic wrapper classes ==
With Java 5.0, additional wrapper classes were introduced in the {{Javadoc:SE|package=java.util.concurrent.atomic|java/util/concurrent/atomic}} package, such as the {{Javadoc:SE|java/util/concurrent/atomic|AtomicInteger}} class. These classes cannot be used as a replacement for the regular wrapper classes, and are not immutable. Instead, they provide [[atomic operation]]s such as addition and increment.
== See also ==
|