Basic Commands List for Selenium Web driver

1. To Select Multiple Items in a Drop down

There are two options which you can use to select items in a drop-down i.e. single select dropdown and multi-select drop-down.


This article dives deeply into catching exceptions in order to help you understand more about exception handling in Java. for more Learn Java Online

1. Catching multiple exceptions

There are as many catch blocks as the number of exceptions which can be thrown from the code safeguarded by the try block. Here’s an example:

try {LineNumberReader lineReader = new LineNumberReader(new FileReader("hello.txt"));String line = lineReader.readLine();lineReader.close();System.out.println(line);} catch (FileNotFoundException ex) {System.err.println("Find not found");} catch (IOException ex) {System.err.println("Error reading file");}

In the above code, the first line in the tryblock can throw FileNotFoundException if the specified file could not…


Java is the wonder programming language that is widely used for most of the modern day computing jobs, from designing websites to game applications to preparing interactive video to any other application jobs. Here are our picks on top 10 Java applications.

To get in-Depth knowledge on Java you can enroll for live Java Online Training

Java is the wonder programming language that is widely used for most of the modern day computing jobs, from designing websites to game applications to preparing interactive video to any other application jobs. Without java applications we just cannot think of any sleazy, smart…


1. What is Java?

Java is the high-level, object-oriented, robust, secure programming language, platform-independent, high performance, Multithreaded, and portable programming language. It was developed by James Gosling in June 1991. It can also be known as the platform as it provides its own JRE and API.

2. What do you mean by Object?

An object consists of methods and class which represent it’s formal and perform operations. A java program covers a lot of objects initiating each other their jobs. This concept is a like part of core java. To get in-Depth knowledge on Java you can enroll for live Java Online Training

3. What do you understand by Java virtual machine?

Java Virtual Machine is a virtual machine that…


Whether you’re just starting out or you’ve been at it for a while, programming with the right tools can make a huge difference in a project’s success. The proper tools allow you to write better code and to quickly identify bugs. All of this makes your code better.

To get in-Depth knowledge on Java you can enroll for live Java Online Training

If your programming language of choice is Java, there is no shortage of tools to cover every aspect of Java development, from coding and testing to server integration and documentation. Let’s explore the best of the best.

Java Editors and Development

1. Java Development Kit (JDK)

JDK…


This is an old yet still popular question. There are multiple reasons that String is designed to be immutable in Java. A good answer depends on good understanding of memory, synchronization, data structures, etc. In the following, I will summarize some answers.

1. Requirement of String Pool

String pool (String intern pool) is a special storage area in Java heap. When a string is created and if the string already exists in the pool, the reference of the existing string will be returned, instead of creating a new object and returning its reference.

To get in-Depth knowledge on Java you…


1. One Codebase

While less of a Java-specific concept, this factor generally refers to getting to a single code base managed in source control or a set of repositories from a common root. Getting to a single codebase makes it cleaner to build and push any number of immutable releases across various environments. The best example of violating this is when your app is composed of a dozen or more code repositories. While using one code repository to produce multiple applications can be workable, the goal is a 1:1 relationship between apps and repos. Operating from one codebase can be done but is…


We all know that Node.js is getting all the attention nowadays. Everyone is interested in learning Node.js and wants to work on it. It would be good to understand the concepts behind a technology before starting work on it. But for beginners, it might be confusing with different definitions used by different people. What exactly is Node.js? Is it a new language or a new framework or a new tool or just a simple JavaScript file? Even for experienced Java developers, it’s little difficult to quickly get an idea about Node.js. Hence, in this article, I will try to explain…


Suppose we have list of four tasks: Task A, Task B, Task C and Task D which perform some complex computation and result into an integer value. These tasks may take random time depending upon various parameters. Learn Java online with this tutorial. This Java course provides training for beginners We can submit these tasks to executor as:

ExecutorService executorService = Executors.newFixedThreadPool(4);
List<Future> futures = new ArrayList<Future<Integer>>();
futures.add(executorService.submit(A));
futures.add(executorService.submit(B));
futures.add(executorService.submit(C));
futures.add(executorService.submit(D));

Then we can iterate over the list to get the computed result of each future:
for (Future future:futures) {
Integer result = future.get();
// rest of the code here.
}…


Most developers expect that performance optimization is a complicated topic that requires a lot of experience and knowledge. Okay, that’s not entirely wrong. Optimizing an application to get the best performance possible isn’t an easy task. But that doesn’t mean that you can’t do anything if you haven’t acquired that knowledge. There are several easy to follow recommendations and best practices which help you to create a well-performing application.

Most of these recommendations are Java-specific. But there are also several language-independent ones, which you can apply to all applications and programming languages. …

Madhu Cynix

AWS Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store