Tree Data-Structure

Is there any inbuilt data structure that we can use for tree implementation?

As mentioned earlier, there are two variety of tree implementation in Java collection framework. One is TreeSet and another is TreeMap. They are defined in the java.util package as follows:

public class TreeSet<E>
   extends AbstractSet<E>
   implements NavigableSet<E>, Cloneable, Serializable


public class TreeMap<K, V>
   extends AbstractMap<K, V>
   implements NavigableMap<K, V>, Cloneable, Serializable

you can see this for reference

https://www.developer.com/java/data/understanding-java-tree-apis.html#:~:text=The%20TreeSet%20and%20TreeMap%20classes,in%20the%20Java%20API%20Library.