Name
Void
Synopsis
The
Void
class cannot be instantiated and serves
merely as a placeholder for its static TYPE
field,
which is a Class
object constant that represents
the void
type.
public final class Void { // No Constructor // Public Constants public static final Class<Void> TYPE; }
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.