Create a Java Program – How to Create the simplest Java Program

In this article, we will see a video that explains how to create a Java program, and a very simple one, if not the simplest you can create. Even though this Java program is composed of only about seven or eight lines of code is a complete runnable program that creates an output to the … Read more Create a Java Program – How to Create the simplest Java Program

Eclipse IDE Download for Java – Getting and Excellent Tool To Work With

In this article, we will talk about what is an IDE, what is a workspace, Eclipse Foundation, and its product called Eclipse. We will also view a video that explains the process of an Eclipse IDE Download for Java programming. Video – Eclipse IDE Download for Java What is an IDE – Integrated Development Environment … Read more Eclipse IDE Download for Java – Getting and Excellent Tool To Work With

What is Java synchronization – Race condition problems solution

In this article, we will talk about what is java synchronization and how it can be used to solve race condition problems. We will use images of the java source code for our explanation. The samples illustrated in the article will be run in an Eclipse Integrated Development Environment specifically the Spring Tool Suite which … Read more What is Java synchronization – Race condition problems solution

What is volatile in Java – Thread visibility problems

Introduction In this article we will discuss field visibility problems that occurs sometimes in Java programs.  We will talk about their causes, how to prevent them, and we will see some techniques and considerations we need to keep in mind when working with multithread programs in Java. Dealing with visibility issues The volatile keyword was … Read more What is volatile in Java – Thread visibility problems

Java Thread isAlive – using isAlive and join methods

Introduction: In this article we are going to talk about two methods, the Java Thread isAlive method and the Java Thread join method.  We will discuss how to use them, we will see example code and we will learn when to use them. Example code depicting Java Thread isAlive method together with join method: package join.isalive; class … Read more Java Thread isAlive – using isAlive and join methods

How to start threads in Java – Illustrated Tutorial

How To Start Threads in Java 01. We are going to use the Thread class for this particular example:  Lets open the Eclipse IDE, in my case I use Spring Tool Suite which is a free Eclipse IDE version.  From the menu select File>New>Java Project… 02. Give the project a name: ThreadSample1… 03.  Press finish… 04. Let … Read more How to start threads in Java – Illustrated Tutorial

What is multithreading in Java – Java Concurrency

Introduction When we run multiple threads simultaneously in a Java program, that is called multithreading.  To achieve multiple tasks at the same time you can use multiprocessing or multithreading.  The smallest unit of processing is called thread. In Java it is preferable to use multithreading because threads can share areas of memory.  By sharing memory … Read more What is multithreading in Java – Java Concurrency