HashMap in java

Ashok Veer | May 06, 2020 | | | Be the first to comment!


HashMap uses Hashing technique for storing key and value pair in java.
The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls.


Java HashMap is a part of collection since jdk 1.2 versions. HashMap implements the Map interface and extends AbstractMap class. HashMap stores data in key & value pairs.  



read more...

TreeSet Class in Java with example

Ashok Veer | May 03, 2020 | | | | Be the first to comment!
TreeSet Class in Java with example

Java TreeSet class which implements NavigableSet interface which is child interface of SortedSet interface. Objects in TreeSet class are stored in sorted ascending order.
TreeSet is similar to HashSet except that it sorts the elements in the ascending order while HashSet doesn’t maintain any insertion or ascending order.
read more...

LinkedHashSet in java

Ashok Veer | May 01, 2020 | | | Be the first to comment!

Java LinkedhashSet class is collection class which implements Set interface. HashSet does not maintains insertion order but LinkedHashSet maintains insertion order of object also LinkedHashSet class is non-synchronized. 
read more ...
read more...

HashSet in java

Ashok Veer | April 30, 2020 | | | | Be the first to comment!

Java HashSet is an collection class which implements Set interface. It is an    un-ordered collection means insertion order is not followed of object in which duplicate value are not allowed. read more...

read more...

List in Java

Ashok Veer | April 29, 2020 | | Be the first to comment!

Java List interface is an ordered collection which follows the insertion order of the element. The user of this interface has precise control over where in the list each element is inserted. We can access the element by their integer index and search for element in the List. read more...

read more...

Vector class in java

Ashok Veer | April 28, 2020 | | | | Be the first to comment!


Vector class is synchronized in nature that’s why whatever operations we perform on vectors. Vector class automatically applies a lock to that operation.

Vector class implements List interface so vector class is also growable in nature which internally resizes array when the elements gets added or removed. 


read more...

Linked List in Java

Ashok Veer | April 26, 2020 | | | | Be the first to comment!

Linked List in Java

LinkedList in java is linear data structures in which element are stored in the different locations and element that are stored in the different location of memory are called as noderead more ... 
read more...

Beginning of java

Ashok Veer | April 25, 2020 | | Be the first to comment!
Beginning of java from techfloaters

Initially, James Gosling other team members started to develop the project in C++, but they faced many problems in C++ compiler regarding with different platform. 

So that time, James Gosling started working on a new language called Oak  which was later in 1995 renamed as Java.. read more..
read more...

How ArrayList works internally in java

Ashok Veer | April 24, 2020 | Be the first to comment!


ArrayList internally uses array data structure and ArrayList grows dynamically when the element are added in the ArrayList as it is create the new array with size greater by its original array capacity….  read more..

read more...

Java Collections - ArrayList

Ashok Veer | April 23, 2020 | | | Be the first to comment!


ArrayList internally uses array data structure and ArrayList is resizable and growable array in nature which implements the List interface... read more...

read more...
 
Copyright © 2019 techfloaters • All Rights Reserved.
Template Design by Ashok Veer ( veersoft solution)