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 - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly or if the parent of the node being inserted is readonly. NOT_FOUND_ERR: Raised if refChild is not a child of this node. NOT_SUPPORTED_ERR: if this node is of type Document, this exception might be raised if the DOM implementation doesn't support the insertion of a DocumentType or Element node.
🌐
Oracle
docs.oracle.com › javase › 7 › docs › api › org › w3c › dom › Node.html
Node (Java Platform SE 7 )
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly or if the parent of the node being inserted is readonly. NOT_FOUND_ERR: Raised if refChild is not a child of this node. NOT_SUPPORTED_ERR: if this node is of type Document, this exception might be raised if the DOM implementation doesn't support the insertion of a DocumentType or Element node.
🌐
Oracle
docs.oracle.com › database › 121 › JAXML › javax › jcr › nodetype › NodeType.html
NodeType (||Oracle Database XML Java API Reference||)
Returns an array containing the child node definitions explicitly specified in the declaration of this node type. This does not include child node definitions inherited from supertypes of this node type. ... Returns true if setting propertyName to value is allowed by 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
🌐
Codecademy
codecademy.com › learn › getting-started-with-data-structures-java › modules › nodes-java › cheatsheet
Getting Started With Data Structures: Nodes Cheatsheet | Codecademy
Learn about the computer science concepts of data structures and algorithms and build implementations of each from scratch in modern Java. ... Nodes are a basic data structure which contain data and one or more links to other nodes. Nodes can ...
🌐
Java Code Geeks
examples.javacodegeeks.com › home › java development › core java
Java Node Example - Java Code Geeks
September 20, 2021 - Pointer Field, which is an array of items of type Node, where each item contains the address information of the next Node in the Linked List. The following Code snippet will show the structure of the Node Class in N-ary Tree and Trie Linked List. ... import java.util.ArrayList; import java.util.List; public class NaryTreeNode { public NaryTreeNode parentNode; // The parent of the current node public List<NaryTreeNode> childList; // The children's of the current node public String dataValue; public NaryTreeNode getParentNode() { return parentNode; } public void setParentNode(NaryTreeNode parent
🌐
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
🌐
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
See how the data type of the value inside the node is set as part of the data type of the node. Note that we cannot use int as the variable data type because all variable data types must bind with a reference data type, also called an abstract data type. This is a data type defined as its own class. This means we cannot do: ... Recall that all of the primitive data types have a wrapper class in Java, for example, Integer wraps int, Character wraps char, and Boolean wraps boolean.
🌐
Oracle
docs.oracle.com › en › database › oracle › oracle-database › 18 › jaxml › javax › jcr › nodetype › NodeType.html
NodeType
Returns an array containing the child node definitions explicitly specified in the declaration of this node type. This does not include child node definitions inherited from supertypes of this node type. ... Returns true if setting propertyName to value is allowed by this node type.
🌐
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
This is not a computed value that is the result of a namespace lookup based on an examination of the namespace declarations in scope. It is merely the namespace URI given at creation time. 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 › 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.
🌐
Dom4j
dom4j.github.io › javadoc › 2.0.3 › org › dom4j › Node.html
Node (dom4j API)
a W3C DOM complient code for the node type such as ELEMENT_NODE or ATTRIBUTE_NODE · java.lang.String getNodeTypeName() DOCUMENT ME! Returns: the name of the type of node such as "Document", "Element", "Attribute" or "Text" Node detach() Removes this node from its parent if there is one.