answersLogoWhite

0

What is treemap in java?

User Avatar

Anonymous

14y ago
Updated: 8/18/2019

A TreeMap is a class in the java.util package that implements the Map data structure - that is, it associates certain keys with their respective values. It stores the key-value pairs in a tree, which means that the keys must implement the Comparable interface. The put() and get() methods are used to manipulate the elements in the map. HashMap is another class in the java.util package that implements a Map, but it uses hashes to store the key-value pairs.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is difference between treeset and treemap?

TreeSet internally implements Balanced Tree Structure whereas TreeMap implements Red Hat Tree Data Structure.


How do you draw a treemap?

draw a doodle of the thing and try and try again.


Why is treemap important to programmers?

Treemaps are important to programmers because they create a visualization of the program. It displays data in a hierarchy using rectangles that are nested inside of each other.


What Indonesian island is Jakarta on?

java


Does Visual Java plus plus and Java Builder is different from the Java language?

Yes!Visual Java plus plus and Java Builder is different from the Java language?


What are the different java technologies?

There are several types of Java technology. Some examples of Java software are Java ME, Java EE, Java SE, and Java Card. Java made the JAVA development kit for those that develop in Java. There is also Java Virtual machine and some class libraries. Java is also famous for its languages like Clojure, Beanshell, Groovy, Gosu, Rhino, Kotlin, JRuby, Scala, and Jython.


Small Java-based programs are called?

Java applets


What is a tree set?

A TreeSet is simply an implementation of the AbstractSet abstract class using a TreeMap to back the data. This is an ordered Set implementation with log(n) time cost to access or modify the data.


Who create Java and when?

Who create Java & when? Why he create java ? What are mane functions of it?


Supermost package of java?

The supermost package of Java is the "java" package.


What do you call java and javascript?

Well you get java as java and javascript as iava.


Differences between Java Applet and Java Beans?

Java applet is a program used to run java applications while beans is a compiler used to design java programs (IDE, GUI) :-) GilbertC