Home » Java

Tag Archives: Java

What is Selenium WebDriver

In this article, we are going to explain what is Selenium WebDriver. WebDriver is a remote control interface that enables introspection and control of user agents. It provides a platform- and language-neutral wire protocol as a way for out-of-process programs to remotely instruct the behavior of web browsers. 1. Introduction Selenium WebDriver is a W3C Recommendation WebDriver is designed as ...

Read More »

Java Memory Model Tutorial

In this tutorial, we will take a look at the Java Memory Model. 1. Introduction Let us look at different memory blocks that are part of the Java Virtual Machine (JVM). Java Memory Model 2. Java Memory Model In Java, Heap memory is used to persist objects. Heap memory consists of the Young generation and Tenured spaces. Young generation space ...

Read More »

Java Virtual Machine Tutorial

1. Introduction Java Virtual Machine (JVM) is a type of process virtual machine which designs to execute Java computer programs in a platform-independent environment. It was first released by Sun Microsystems in 1994 and then split into JVM specification and implementation in 2006. The JVM specification is maintained by Java Community Process (JCP). Click here for a list of JVM ...

Read More »

Apache Camel Headers vs Properties Example

In this article, we provide an Apache Camel Headers vs Properties Example. 1. Introduction With the development and acceptance of distributed systems in big enterprises that solve big problems by putting small pieces together, there are situations when multiple components need to be integrated to solve a single problem. It is possible these components run beyond frameworks and APIs to ...

Read More »

How to update Java for Windows 10, macOS, and Android

This is an article on how to update Java, download java latest version on a Windows 10 or a macOS machine, and on your Android device (Mobile, Tablet, Tv…etc.). In order to improve functionality and enhance security, Java is updated frequently by Oracle. As a result, if you want to keep your system secure, it’s important to make sure that ...

Read More »

TestNG Basic Annotations Tutorial

In this post, we will take a look at TestNG annotations and how we can use them in unit tests for maximum benefit. 1. TestNG Annotations – Introduction TestNG is a testing framework for the Java programming language created by Cedric Beust and inspired by JUnit and NUnit. The design goal of TestNG is to cover a wider range of ...

Read More »

Java Quartz Asynchronous Example

In this article, we will show an example of the Java Quartz Asynchronous. Quartz is a richly featured, open-source job scheduling library that can be integrated with any Java application. 1. Introduction Quartz can be used to create simple or complex schedules for executing tens, hundreds, or even tens-of-thousands of jobs; jobs whose tasks are defined as standard Java components ...

Read More »

10 Tips for Writing Good Unit Tests

In this article, we provide 10 Tips for Writing Good Unit Tests. Testing is a very important aspect of software development and largely determines the fate of an application. Adequate testing helps to identify potential issues early during the development lifecycle. The cost of finding and fixing a bug is higher as we move across the phases from design till ...

Read More »

Java Fork and Join

In this tutorial, we will look at the Fork Join framework in Java with examples. It speeds up parallel processing by leveraging all processor cores with a divide and conquer approach. The fundamental idea is the below algorithm from original Fork Join paper. Result solve(Problem problem) { if (problem is small) directly solve problem else { split problem into independent ...

Read More »

Selenium Java Introduction

This article its a Selenium tutorial that explains how to run selenium tests in Java language. 1. What is selenium Selenium is used to automate browsers. Selenium supports various programming languages such as C#, Haskell, Java, JavaScript, Python, and Ruby through Selenium drivers. It supports various browsers such as Chrome, Firefox, Safari, Opera, and Internet Explorer. 2. When is selenium ...

Read More »