Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!

 

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

 

and many more ....

 

Receive Java & Developer job alerts in your Area

I have read and agree to the terms & conditions

 

JUnit Test Void Method Example

In this example, we shall show you to test void methods. In JUnit Test Void Method example we will learn how we can test the void methods using the JUnit. In our previous tutorials, we have learned a lot about the JUnit and its various techniques about testing. But in our previous tutorials we haven’t seen how we can test ...

Read More »

Xpath Search by id Example

Bipartite Graph

In this article we will learn how to search for an element (by id) in an XML using XPath. We will make use of IDEA IntelliJ to work on this. I am using IntelliJ 14.0.2 and Java 8. 1. Introduction XPath is a W3C recommendation. XPath stands for XML Path Language. XPath uses path expressions to select nodes or node-sets ...

Read More »

Log4j Database Appenders Example

In this example, we are going to learn how to log messages from our application into database with log4j. 1. Introduction Log4J is one of the many logging frameworks available to use with Java, perhaps the most popular of all of them. With Log4J you can log general flow of the application as well as record exceptions. Few points to ...

Read More »

JUnit Test Constructor Example

In JUnit Test Constructor Example, we shall show you the process of testing the constructor of a class. It is as simple as we are testing other methods. Since the constructor is called before any other methods of the class we need to see the relevance of testing it.                     Constructors ...

Read More »

XPath XSLT Tutorial

Bipartite Graph

In this article we will learn how to use XPath in XSLT. XPath stands for XML Path Language. It is a W3C recommendation. It uses ‘path like’ syntax to identify and navigate nodes in an XML document. 1. Introduction XPath can be used to navigate through elements and attributes in an XML document. XPath contains over 200 built-in functions. There are functions for ...

Read More »

How to Add Licensing Support to Your Confluence Add-on

In this example we will cover how to add licensing support to your Confluence add-on in this article. A developer needs to make some money in order to survive in this ever changing world. One of the ways we make a living is by licensing our software product. So let’s get to it and make some bread. 1. Requirements Atlassian ...

Read More »

JUnit Testcase Example

In this example, we shall show users how to use JUnit Testcase. JUnit Testcase example will follow you to the scenarios of how we can use and test our methods with the help of the JUnit Testcase. As a regular reader, you are already familiar with the JUnit and its usage. If you are new to it you are recommend ...

Read More »

Reactive Java (RxJava) Tutorial: Introduction

Bipartite Graph

Reactive Java or RxJava is an implementation and enhancement of the observer pattern. It was intended for use in event driven schemes where nesting synchronous or asynchronous callback methods becomes overly complex. The key addition that RxJava provides in addition to the observer pattern is the ability to determine when event processing is complete or an error has occurred. You ...

Read More »

Slf4j Commons Logging Example

In this example, we are going to see how SLF4J fares vis-à-vis Apache Commons Logging. 1. Introduction From time immemorial, logging has remained an integral part of programming enterprise applications and so does the logging frameworks. With Java, comes a wide variety of logging frameworks to choose from. While writing a library (to be used any application), it is desirable that ...

Read More »

Java XPath Using SAX Example

Bipartite Graph

1. Introduction XPath is used to retrieve and interpret information represented in XML files using either a DOM or SAX parser. * DOM – Document Object Model – This popular class of parsers read the entire XML file and construct the DOM in memory. Since the DOM is memory resident, evaluation of the XPath expressions is faster. * SAX – ...

Read More »