Learn Java and Programming through articles, code examples, and tutorials for developers of all levels.
Top 40 Core Java Interview Questions Answers from Telephonic Round [UPDATED]
How to remove duplicate characters from String in Java? [Solved]
3 Ways to change Embedded Tomcat Server Port in Spring Boot Application - Example
How to find Kth Smallest Element in a Binary Search Tree? [Solved]
Difference between @SpringBootApplication vs @EnableAutoConfiguration annotations in Spring Boot? Example
How to check if a Key Object Exists in HashMap Java? containsKey() Example Tutorial
if(map.get(key) != null){
System.out.println("key exits in Map");
}
This code is fragile, it will not work if you have added null values into HashMap because HashMap does allow null values.
How to find the maximum sum level in a given binary tree in Java? Example Tutorial
Decorator Design Pattern Example in Java [Tutorial]
Difference between notify and notifyAll in Java? [Answered]
How to create a dynamic list in React? Example Tutorial
1. Introduction
Working with lists is common in React web development. Creating a static list is very easy but making it dynamic can be tough. Dynamic lists can generally be manipulated in one way or another. For example, a new item can be added to a list by entering a value in an input field or an item can be removed when it is clicked.
In this tutorial, we will learn how to create a dynamic list in which a new item can be added through an input field. Moreover, we will learn how to delete an item when clicked.
How to Solve Producer Consumer Problem in Java using BlockingQueue [Example]
10 Programming questions and exercises for Java Programmers
How to Find the Largest and Smallest of Three Numbers in Java? [Solved]
Difference between wait() and join() methods in Java [Answered]
Top 12 Java Thread, Concurrency, and Multithreading Interview Questions with Answers
Multithreading is an important feature of the Java programming language, which means threads are also an important part of any Java interview. It's true and in fact, at beginners and freshers, level Thread interview questions in Java are one of the most difficult to answer. One reason for interview questions related to multithreading and concurrency being difficult is confusion around how multiple threads work together and the second is threads are genuinely a complicated topic to understand and use correctly.
5 Best Django Python Courses for Beginners to Learn Online in 2022 [UPDATED]
Difference between CountDownLatch vs CyclicBarrier in Java Multithreading
Both CyclicBarrier and CountDownLatch are used to implement a scenario where one Thread waits for one or more Thread to complete their job before starting processing but there is one difference between CountDownLatch and CyclicBarrier in Java which separates them apart and that is, you can not reuse the same CountDownLatch instance once count reaches to zero and latch is open, on the other hand, CyclicBarrier can be reused by resetting Barrier, Once the barrier is broken.
How to use wait, notify, and notifyAll in Java? Example Tutorial
Top 3 Niche Programming Languages You can Learn in 2022
Hello guys, if you are looking for programming languages to gain an edge over the competition then you have come to the right place. In the past, I have shared the best programming language for beginners, the best programming langauge for Data Science, the best programing langauge for web development, Cyber Security, App Development, and game development in this article, I am going to share 3 unique programming langauge which you can learn to distinguish your resume from others. I have chosen a combination of dynamic programming langauge, functional programming langauge, and something which is not very common and makes you a niche developer.
Producer Consumer Problem with Wait and Notify - Thread Example Tutorial
How to Create and Start Multiple Threads in Java? - Example Tutorial
How to Find Lowest Common Ancestor of a Binary Tree in Java? Example Tutorial
To find the lowest common ancestor of a binary tree in java requires that we run through a binary search tree and how it operates.
What then is a binary search tree? A Binary tree is a data structure in which each node can have at most two children. That is, each node in the binary tree will have data, left child and right child. The first node of the tree is called the Root.
Below is the image of the Binary search tree, the first circle with 15 is called the root node and it has two children, left and right nodes with the values,10 and 20 respectively. Node 10 has two children too with 5 and 13 as values. The left child of node 10 does not have any child but, the right node with value 13 has two children nodes 12 and 14 respectively.
Top 10 Java Interview Questions for 2 to 3 years experience - Answered
Java 8 - Map and Reduce Example Tutorial
How to use PreparedStatement in Java - JDBC Example Tutorial
Is it Possible to add static or private methods in Java interface?
How to convert Date to LocalDateTime in Java 8 - Example Tutorial
Top 10 Tricky Java interview questions and Answers
Right way to check if String is empty in Java with Example
Top 50 JavaScript Interview Questions for Beginners [ 1 to 2 Years Experienced]
Top 5 Free & Paid Spring Certification Courses and Practice Tests
What is objects in JavaScript? Example Tutorial
JavaScript is a dynamically typed programming language. In JavaScript, it is not required to define the data type of a variable but that does not mean JavaScript does not have data types. Data types in JavaScript are divided into two categories - primitive and non-primitive.
Primitive data types such as numbers and strings can hold only a single value. But non-primitive types can hold more than one value. Objects in JavaScript are non-primitive.
If you have ever done programming, you may be familiar with the concept of objects because objects are one of the most important parts of programming. The reason is simple. Objects can hold multiple values. In this article, we will discuss objects in JavaScript.
How to Pass Spring Professional 5.0 Certification (VMware EDU-1202) in 2022 [UPDATED]
5 Best books to Learn JDBC for Java Programmers
Top 18 Java Design Pattern Interview Questions Answers for Experienced
Hello guys, if you are preparing for Java interviews and looking for frequently asked design pattern interview questions then you have come to the right place. In the past, I have shared the best courses for Java interviews, and today, I am going to share popular design pattern questions from Java interviews. You can use these questions to both practices and check your knowledge about OOP design patterns. Both OOP and GOF design pattern interview questions are an integral part of any good list of core Java interview questions. Java is a popular Object-oriented programming language and has lots of design patterns and design principles, contributed by many developers and open-source frameworks.