< prev index next >

src/java.base/share/classes/java/lang/Object.java

Print this page
@@ -1,7 +1,7 @@
  /*
-  * Copyright (c) 1994, 2023, Oracle and/or its affiliates. All rights reserved.
+  * Copyright (c) 1994, 2024, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.  Oracle designates this

@@ -30,10 +30,14 @@
  
  /**
   * Class {@code Object} is the root of the class hierarchy.
   * Every class has {@code Object} as a superclass. All objects,
   * including arrays, implement the methods of this class.
+  * <p>
+  * Subclasses of {@code java.lang.Object} can be either an {@linkplain Class#isIdentity identity class}
+  * or a {@linkplain Class#isValue value class}.
+  * See {@jls The Java Language Specification 8.1.1.5 value Classes}.
   *
   * @see     java.lang.Class
   * @since   1.0
   */
  public class Object {
< prev index next >