Java Void类
JAVA void
2023-09-27 14:19:48 时间
package java.lang;
/**
* The {@code Void} class is an uninstantiable placeholder class to hold a
* reference to the {@code Class} object representing the Java keyword
* void.
*
* @author unascribed
* @since JDK1.1
*/
public final
class Void {
/**
* The {@code Class} object representing the pseudo-type corresponding to
* the keyword {@code void}.
*/
@SuppressWarnings("unchecked")
public static final Class<Void> TYPE = (Class<Void>) Class.getPrimitiveClass("void");
/*
* The Void class cannot be instantiated.
*/
private Void() {}
}
/*
* Return the Virtual Machine's Class object for the named
* primitive type.
*/
static native Class<?> getPrimitiveClass(String name);
相关文章
- java.lang.UnsatisfiedLinkError: org.apache.hadoop.util.NativeCrc32.nativeComputeChunkedSumsByteArray(II[BI[BIILjava/lang/String;JZ)V
- 第一篇(2):Java内存模型
- java多线程通过管道流实现不同线程之间的通信
- JAVA 中的 Collection 和 Map 以及相关派生类的概念
- 02点睛Spring4.1-Java Config
- java split()
- 传智播客Java switch和循环
- Java异常处理的20个最佳实践
- Java 实现享元(Flyweight)模式
- java web开发(第一个spring程序)
- Java 8 新增接口特性default
- Java语法糖之foreach