Learn Java and Programming through articles, code examples, and tutorials for developers of all levels.
Monday, January 31, 2022
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
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]
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.
Thursday, January 20, 2022
Java 8 - Map and Reduce Example Tutorial
Wednesday, January 19, 2022
How to convert Date to LocalDateTime in Java 8 - Example Tutorial
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.