Learn Java and Programming through articles, code examples, and tutorials for developers of all levels.
Monday, January 31, 2022
How to remove duplicate characters from String in Java? [Solved]
3 Ways to change Embedded Tomcat Server Port in Spring Boot Application - Example
Sunday, January 30, 2022
Difference between @SpringBootApplication vs @EnableAutoConfiguration annotations in Spring Boot? Example
Saturday, January 29, 2022
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.
Friday, January 28, 2022
Decorator Design Pattern Example in Java [Tutorial]
Difference between notify and notifyAll in Java? [Answered]
Thursday, January 27, 2022
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.
Wednesday, January 26, 2022
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]
Monday, January 24, 2022
5 Best Django Python Courses for Beginners to Learn Online in 2023 [UPDATED]
Sunday, January 23, 2022
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.
Friday, January 21, 2022
Top 3 Niche Programming Languages You can Learn in 2023
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 language for Data Science, the best programing language for web development, Cyber Security, App Development, and game development in this article, I am going to share 3 unique programming language which you can learn to distinguish your resume from others. I have chosen a combination of dynamic programming language, functional programming language, and something which is not very common and makes you a niche developer.
Thursday, January 20, 2022
Top 10 Java Interview Questions for 2 to 3 years experience - Answered
Java 8 - Map and Reduce Example Tutorial
Wednesday, January 19, 2022
How to convert Date to LocalDateTime in Java 8 - Example Tutorial
Tuesday, January 18, 2022
Top 10 Tricky Java interview questions and Answers
Monday, January 17, 2022
Right way to check if String is empty in Java with Example
Thursday, January 13, 2022
Top 5 Free & Paid Spring Certification Courses and Practice Tests
Wednesday, January 12, 2022
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.