Home » Tag Archives: core java

Tag Archives: core java

Java Max Int Example

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 two’s complement integer, which has a range from [ -2^31,2^31-1].  Create a new class with name MaxIntegerExample1 and copy-paste the following code : ...

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 »

Factory Pattern Java Example

1. Introduction In this article we will discuss one of Java’s most common design patterns – Factory Pattern Java design pattern. Factory Method pattern is a type of creational design pattern but it is one of the finest ways to generate an object. So, in Factory Method design pattern, we develop objects but without revealing the logic or functionality of ...

Read More »

Java Builder Design Pattern Example

1. Introduction In this article, we will describe Java Builder Design Pattern in detail. The Builder design pattern, as its name suggests, seems to be an alternative way to develop complex objects. This can only be used if you choose to create different unchangeable objects who use the same process of object building. This design pattern in Java is a type of Creational ...

Read More »

Java Flyweight Design Pattern Example

1. Introduction In this article, we will look at the Java flyweight design pattern. This design pattern helps us to reduce the memory usage. It can also improve performance in applications where object attachment is costly. The main intent of Flyweight design pattern is “Facilitates the reuse of many fine grained objects and makes the use of large numbers of ...

Read More »

Java Chain of Responsibility Design Pattern Example

1. Introduction In this article, we will discuss about a widely used Design pattern – Java Chain of Responsibility Design Pattern. In the name itself it suggests that, the Chain of responsibility design pattern generates a chain of receiver objects for a request. This pattern separates the sender and receiver for a request based on the type of request. This design pattern is a classification ...

Read More »