I am using the Java Tree from collection but what will be the actual use of Tree.
As in CS language, a B-tree can have a max of 2 childs , leaf , height of the tree and other.
But in java how these interpretation can be observed and what is the implementation of Tree in java.
I am talking about TreeMap and TreeSet only
If you are talking about the
TreeSetandTreeMapclasses, they are implementing theSetandMapinterfaces respectively with an internal representation of a Tree structure. So the tree inside is not accessible to users (you cannot access the children directly)Note: there is no standard
Treeinterface in java