Home » core java

Tag Archives: core java

Java Method Signature

In this post, we are going to talk about the Java method signature, method overloading, and method overriding by examples. The JDK version we use to compile the source code in this example is OpenJDK 13 and the IDE we use is Eclipse IDE 2020-03. 1. What is a method signature in Java In Java programming language, the method signature ...

Read More »

Java RMI – Java Remote Method Invocation Example

1. What is RMI RMI (Remote Method Invocation) is an object-oriented way of RPC (Remote Procedure Call) to realize communication between distributed objects in a distributed computing environment. It allows an object to invoke methods on a remote object. Java RMI, a Java implementation of remote method invocation, consists of several APIs under java.rmi package. It allows a Java program ...

Read More »

Wrapper Class Java Example

1. What is a wrapper class A wrapper class in Java is a way to convert a primitive data type such as boolean, int, etc. into an object. Also, we can convert an object of a wrapper class into its corresponding primitive type. In this article we are going to talk about why we need wrapper classes, autoboxing, and autounboxing. ...

Read More »

How to create an Array in Java

In this article, we will see How to create an Array in Java. You can check how to use arrays in Java in the following video: Java Array Example – How to use Arrays in Java 1. What is an array? An array is a data structure used as a container to store a collection of elements with the same ...

Read More »

Java Max Int Example

In this article, we will implement a Java example to see how we can get the int (integer) max value in a program. 1. Introduction Int is one of the most popular primitive data types of java and we use it almost everywhere. This article explains technical specs about max int. 2. Java Max Int According to java, int data type is 32-bit signed ...

Read More »

Java Modulus Example

In this post, we feature a comprehensive article about Java Modulus. 1. Introduction This article will show the usage of the modulo operation that computes the remainder after division of 2 numbers. Java use a specific arithmetic operator the Remainder Operator with the symbol %. 2. Java Modulus – Use Cases In this section we show same useful use cases ...

Read More »

Selenium Name Locator Example

In this post, we feature a comprehensive Selenium Name Locator Example in Automation Scripts. 1. Introduction Selenium is used to automate browsers. Selenium WebDriver has found its place in test automation for web applications. It is used to create robust, browser-based regression automation suites and tests. It can be used for end to end testing of an application. This ensures ...

Read More »

Logback Custom Appender Example

This article discusses creating a custom Appender for logback, a logging framework for the Java application. 1. Introduction to Logback Logback is designed to be the successor for Log4j. It has been developed by the same development community. These are some of the advantages logback has over log4j Faster implementation – ~10x faster on some critical areasAutomatic Reloading of configuration ...

Read More »

Selenium Exceptions Example

1. Introduction Selenium is used to automate browsers. Selenium WebDriver has found its place in test automation for web applications. It is used to create robust, browser-based regression automation suites and tests. It can be used for end to end testing of an application. This ensures that the application works as designed. Selenium supports various programming languages such as C#, ...

Read More »

Selenium Best Practices Tutorial

This article explores best practices and use cases for Selenium. For our purpose, We will be utilizing Selenium with Java. 1. Introduction Selenium is used to automate browsers. Selenium WebDriver has found its place in test automation for web applications. It is used to create robust, browser-based regression automation suites and tests. It can be used for end to end ...

Read More »