Core Java
-
XPath ancestor example
In this example we will learn how to get the ancestor details of a given node using XPath. We will…
Read More » -
XPath descendant example
In this example we shall talk about the Descendant axis specifier in XPath. An axis specifier indicates the direction of…
Read More » -
JDBC Batch Update Example
1. Introduction This article presents a simple example of performing JDBC Batch Update. It assumes that the reader is familiar…
Read More » -
Java Try with Resources Example
1. Introduction Try-with-resources in Java 7 is a new exception handling mechanism that makes it easier to correctly close resources…
Read More » -
Mockito mock static method example
In this article, I am going to show you how to mock static methods using Powermockito. PowerMock is an open source…
Read More » -
XPath innertext selection example
In this example we will learn how to select a node with a given inner text using XPath. We will start…
Read More » -
XPath count example
In the previous example, we studied how to use the XPath Concat method. In this example, we will see how…
Read More » -
Java 7 New IO API Example
1. Introduction Java NIO (New IO) is an alternative IO API for Java (from Java 1.4) – it was deemed…
Read More » -
Powermock – Mockito Integration Example
Most of the mocking frameworks in Java, including Mockito, cannot mock static methods or final classes. If we come across…
Read More » -
XPath ends-with example
In this example we will learn how to use the ends-with function of XPath. We will start with the introduction of…
Read More »