Home » Archives for Rajagopal ParthaSarathi

Author Archives: Rajagopal ParthaSarathi

Rajagopal works in software industry solving enterprise-scale problems for customers across geographies specializing in distributed platforms. He holds a masters in computer science with focus on cloud computing from Illinois Institute of Technology. His current interests include data science and distributed computing.

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 »

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 »

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 »

Sorting Algorithms Java Tutorial

In this tutorial, we will look at various sorting algorithms and their corresponding implementations in Java. Table Of Contents 1. What is Sorting 2. Complexity 3. Sorting Algorithms 3.1. Bubble Sort 3.2. Selection Sort 3.3. Insertion Sort 3.4. Quick Sort 3.5. Merge Sort 3.6. Heap Sort 3.7. Counting Sort 3.8. Summary 4. Download the Source Code 1. What is Sorting ...

Read More »

ArrayList to Array Java Example

In this tutorial, we will look at various ways to convert ArrayList to array java and we will discuss the efficient approach for it. 1. ArrayList to Array in Java The first step for our example is to create an ArrayList List numbers = new ArrayList(); final int endRange = 100000000; IntStream.range(0, endRange).forEach(value -> { numbers.add(value + 1); }); We ...

Read More »

Java String Methods from Java 8 to Java 14

In this article, we will look at the new string methods added to the Java API from versions 8 to 14. 1. Java String Methods – Java 8 The newly added method in Java 8 is join for joining up the various strings. Let us see the methods with an example: public class StringDemo { public static void main(String[] args) ...

Read More »

Overloading Java Methods Example

In this post, we feature a comprehensive article on Overloading Java Methods. Overloaded methods are methods with the same name signature but either a different number of parameters or different types in the parameter list. It is similar to constructor overloading, that allows a class to have more than one constructor having different argument lists. Method overloading is an example ...

Read More »

Printstream Java Example

This article is a quick introduction to the Printstream Java class available as part of Java ecosystem. 1. Introduction Stream refers to data essentially bytes at lowest level. To read and process data from a source, the data needs to be saved. Outputstream is the means to save the data to a sink. Outputstream is the superclass of all classes ...

Read More »