Core java
29 AprilHashMap in java
HashMap is hash table based implementation of Map interface. It stores entry in key-value pairs. It maps keys to values. It is one of the most used Collection. Java HashMap HashMap implements Map an interface that maps a key to value. It is not synchronized and is not thread-safe. Duplicate keys are not allowed One […]
29 AprilTreeMap in java with examples
TreeMap class implements Map similar to HashMap. Some important points about TreeMap: TreeMap implements Map interface and extends HashMap class. TreeMap is implemented using Red black tree based NavigableMap. TreeMap is ordered collection and store its elements in natural ordering of keys. Key which you would like to put in TreeMap must implement Comaparable interface or you can […]
28 AprilLinkedHashMap in java
LinkedHashMap is a Hashtable and linked list-based implementation of Map interface, with predictable insertion order. It maintains double linked list of all its entries, that’s how it differs from HashMap. Java LinkedHashMap Some points about LinkedHashMap LinkedHashMap implements Map interface and extends HashMap class. LinkedHashMap maintains insertion order, so when you will be able to […]
28 AprilBetfury bonus – celoten vodnik za kar največjo izkušnjo
Casino betfury izstopa na konkurenčnem trgu, ta vodnik po korakih pa natančno pojasnjuje, kako kar najbolje izkoristiti njegove funkcije. Sledite spodnjim navodilom, da brez težav opravite registracijo, izkoristite bonuse in varno upravljate svoj denar. Kaj potrebujete najprej Veljaven e-poštni naslov Napravo s stabilno internetno povezavo (računalnik, pametni telefon ali tablica) Osebne dokumente za postopek preverjanja […]
25 AprilAviator Casinos Guide: Einzahlung, Bonus und Auszahlung leicht erklärt
Viele Spieler haben Fragen zu Casinos mit aviator, bevor sie ihren ersten Euro einzahlen – hier sind die ehrlichen Antworten. In diesem Leitfaden erklären wir Ihnen Schritt für Schritt, wie Sie in einem Aviator Casino spielen, welche Voraussetzungen erfüllt sein müssen, wie das Wetten funktioniert und worauf Sie bei Ein- und Auszahlungen achten sollten. Unser […]
22 AprilHow to calculate difference between two dates in java
In this post, we will see how to calculate difference between two dates. Sometimes we have requirement to find no. of days between two dates or no. of hours between two dates. Java Program: [crayon-6a2aa334ea979819752810/] When you run above program, you will get following output: [crayon-6a2aa334ea980362453959/]
12 AprilJava Collections interview questions and answers
In this post, I am going to share some of logical java Collections interview questions which will help to understand Collections concepts better. For an extensive list of java programs, please go to Java interview programs. Question 1: What can be output of below code : [crayon-6a2aa334eafe6137414701/] options are : A)France France India B)India India […]
01 AprilHow to check if linked list is palindrome in java
In this post, we will see how to check if linked list is palindrome or not. Java Linked List Interview Programs: How to reverse a linked list in java How to reverse a linked list in pairs in java How to find middle element of linked list in java How to detect a loop in […]
01 AprilJava program to reverse linked list in pairs
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. This is one of popular interview question. In this post, we will see how to reverse linked list in pairs. Java Linked List Interview Programs: How to reverse a linked list in java How to reverse […]