Category Java

Scientech Easy welcomes you in the Java tutorial category. We have designed this tutorial series for beginners, students, and professional developers who want to learn Java programming from basic to advanced levels. Here, you will find easy-to-understand Java tutorials, practical example programs, interview questions, and quizzes.

So, let’s start to understand Java concepts one by one with these tutorials.

TreeSet in Java

TreeSet hierarchy in Java

A TreeSet in Java is another important implementation of the Set interface that is similar to the HashSet class, with one added improvement. It sorts elements in ascending order while HashSet does not maintain any order. Java TreeSet implements SortedSet…

How to Iterate Map in Java

We have known in the previous tutorial, a map in Java is a container object that stores elements in the form of key and value pairs. If the key is provided, its associated value can be retrieved easily. Keys must…

Map in Java

Map in Java

A map in Java is a container object that stores elements in the form of key and value pairs. A key is a unique element (object) that serves as an “index” in the map. The element that is associated with…

How to Iterate Set in Java

Ways to iterate set in Java

In this tutorial, we will learn how to iterate Set in Java with the help of examples. A set is a collection of unique elements or objects that are not stored in a particular order. Set interface does not provide…

HashSet in Java

Java HashSet hierarchy diagram

HashSet in Java is an unordered collection of elements (objects) that contains only unique elements. That is, it allows duplicate free elements to be stored. It internally uses Hashtable data structure to store a set of unique elements. It is…