java.lang.Void 与 void的比较及使用_public class void
void关键字表示函数没有返回结果,是java中的一个关键字。 java.lang.Void是一种类型。例如给Void引用赋值null。 Void nil = null; 通过Void类的代码可以看到,Void类型不可以继承与实例化。 public final class Void { /** * The {@code Class} object representing the pseudo-type corresponding to * the keyword {@code void}. */ @SuppressWarnings("unchecked") public static final Class