For me everything can contain only {text(string), numbers, charaters}, so when I've seen Node node; i ve been confused,which type it stores?

It seems you have not yet arrived in object oriented programming.

Whatever object you create, it can store text, number characters and code (method pointers). And it can store references to other objects, which again have text, number, characters and code of their own.

The good news is that Java is strongly typed. So for each variable you can lookup the type in your code and rest assured at runtime it will be that type either. Over time you will learn which types are part of the Java runtime, which of them come from libraries or which of them are from your code.

So spend some time being puzzled but do not give up. It's worth it. :-)

Answer from queeg on Stack Overflow
🌐
Oracle
docs.oracle.com › javase › 8 › docs › api › org › w3c › dom › Node.html
Node (Java Platform SE 8 )
July 21, 2026 - Returns the DOMUserData associated to the given key on this node, or null if there was none. ... Java™ Platform Standard Ed.
🌐
Oracle
docs.oracle.com › javase › 7 › docs › api › org › w3c › dom › Node.html
Node (Java Platform SE 7 )
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly and if it is not defined to be null. ... A code representing the type of the underlying object, as defined above.
🌐
Oracle
docs.oracle.com › database › 121 › JAXML › javax › jcr › nodetype › NodeType.html
NodeType (||Oracle Database XML Java API Reference||)
Returns an array containing the property definitions of this node type, including the property definitions inherited from supertypes of this node type. ... Returns an array containing the property definitions explicitly specified in the declaration of this node type.
🌐
Java Code Geeks
examples.javacodegeeks.com › home › java development › core java
Java Node Example - Java Code Geeks
September 20, 2021 - During the course of this article, we have seen various use-case featuring the Node class. Java Node class is actually being used as a generic name for any object template which is used in a building block for any non-sequential Data structure.
🌐
Adobe Developer
developer.adobe.com › experience-manager › reference-materials › spec › javax.jcr › javadocs › jcr-2.0 › javax › jcr › nodetype › NodeType.html
NodeType
Package javax.jcr.nodetype · All Superinterfaces: NodeTypeDefinition · public interface NodeType extends NodeTypeDefinition · A NodeType object represents a "live" node type that is registered in the repository. getDeclaredChildNodeDefinitions, getDeclaredPropertyDefinitions, getDeclare...
Find elsewhere
🌐
Oracle
docs.oracle.com › en › database › oracle › oracle-database › 18 › jaxml › javax › jcr › nodetype › NodeType.html
NodeType
Returns an array containing the property definitions of this node type, including the property definitions inherited from supertypes of this node type. ... Returns an array containing the property definitions explicitly specified in the declaration of this node type.
🌐
University of Colorado Boulder
home.cs.colorado.edu › ~main › docs › edu › colorado › nodes › Node.html
Node
Each node contains a piece of data (which is a reference to an E object) and a link (which is a reference to the next node of the list). The reference stored in a node can be null. ... Java Source Code for this class (www.cs.colorado.edu/~main/edu/colorado/nodes/Node.java) , BooleanNode, ByteNode, CharNode, DoubleNode, FloatNode, IntNode, LongNode, ShortNode
🌐
University of Alberta
sites.ualberta.ca › ~rosanna › books › PDSA › chapter5 › node.html
But First, What is a Node? — Practices in Data Structures and Algorithms with Java
This means, though, that we would be rewriting our Node class every time we wanted a different type of value in the node. Remember we don’t like code repetition, yet keeping the data type of the value as Object means we have lost the type-checking capability of our compiler or IDE. Java allows generic data types.
🌐
University of Hawaii
www2.hawaii.edu › ~walbritt › ics211 › examples › Node.java
/ A generic Node class that Stores a reference to Data and the next Node
private T data; // next points to the next node private Node next; · public Node(T data2, Node next2) { data = data2; next = next2; }
🌐
Oracle
docs.oracle.com › en › java › javase › 21 › docs › api › java.xml › org › w3c › dom › Node.html
Node (Java SE 21 & JDK 21)
January 20, 2026 - A code representing the type of the underlying object, as defined above. ... The value of this node, depending on its type; see the table above.
🌐
W3C
w3.org › 2003 › 01 › dom2-javadoc › org › w3c › dom › Node.html
W3C DOM Level 2 version 1.0 - Java API: Interface Node
Returns the local part of the qualified name of this node. For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as createElement from the Document interface, this is always null.
🌐
Medium
javafullstackdev.medium.com › java-nodes-explained-essential-building-blocks-for-linked-lists-trees-and-graphs-93b1163f922e
Java Nodes Explained: Essential Building Blocks for Linked Lists, Trees, and Graphs | by fullstackjavadev.in | Medium
June 2, 2024 - When diving into the world of data structures in Java, you’ll frequently encounter the term “node.” A node serves as a fundamental element or building block in various data structures such as linked lists, trees, and graphs.
🌐
Cafeconleche
cafeconleche.org › books › xmljava › chapters › ch09s07.html
The Node Interface - Cafe con Leche
March 6, 2002 - There are twelve constants for the twelve named node types defined in the DOM core, and a method that returns the type of the current node using one of these constants. To a Java programmer, these are just weird all around. First of all, you’d probably expect to use instanceof, getClass(), and class names to test for types when necessary instead of short constants and a getNodeType() method.
🌐
Virginia Tech
courses.cs.vt.edu › ~cs2114 › Fall2015 › CarranoDataStructures › JavaDocs › bag › Node.html
Node
java.lang.Object · bag.Node<T> Type Parameters: T - Type of object held inside of the Node · public class Node<T> extends java.lang.Object · Node To be used when implementing Carrano Data structures with a singly linked list. Might be used for BagInterface, or SimpleBagInterface.
🌐
Oracle
docs.oracle.com › en › java › javase › 26 › docs › api › java.xml › org › w3c › dom › Node.html
Node (Java SE 26 & JDK 26)
March 16, 2026 - A code representing the type of the underlying object, as defined above. ... The value of this node, depending on its type; see the table above.
🌐
Oracle
docs.oracle.com › en › java › javase › 14 › docs › api › java.xml › org › w3c › dom › Node.html
Node (Java SE 14 & JDK 14)
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly and if it is not defined to be null. ... A code representing the type of the underlying object, as defined above.