Home » Core Java

Core Java

ΧPath Jmeter Example

In this article we will learn how to use XPath in JMeter. For this example we will use JMeter 3.2 and Java 8. The Apache JMeter™ application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test ...

Read More »

JUnit Example For Rest Web Services

In this example, we shall show users how they can test a REST service with the help of the JUnit. We will use the Jersey and REST assured for this example. Table Of Contents 1. Introduction 2. Technologies Used 3. What is Jersey? 4. What is REST assured? 5. Project SetUp 6. JUnit Example for REST Web Services 6.1 Java ...

Read More »

Java Nio Echo Server Tutorial

This article is a tutorial on implementing a simple Java NIO “echo server”. This example will take the form of a rather simple client server application whereby a client or many clients will connect to a running server and post message(s) to the server which will in turn be “echoed” back to the respective clients. 1. Introduction This article builds ...

Read More »

Java Nio Asynchronous Channels Tutorial

This article is a tutorial on the Asynchronous Channels API which was released as part of Java 7. The API can be viewed here. The example code will demonstrate use of the core abstractions of this API and will capture the essence of using the API. Table Of Contents 1. Introduction 2. Technologies used 3. API interaction 4. AsynchronousChannel 5. ...

Read More »

Java 9 New Features Tutorial

1. Introduction In this example, I would like to show you how to get started with Java 9 and write a simple Hello World program. Here, I present a simple example to get started along with details of some of the important new features. Table Of Contents 1. Introduction 2. Getting Started 3. Running a Hello World program on Java 9 4. ...

Read More »

How To Write Unit Test Cases in Java With JUnit

In this tutorial we shall show users how to write unit test cases in Java with JUnit. This tutorials will show the JUnit test examples Table Of Contents 1. Introduction 2. Technologies Used 3. Project Setup 4.JUnit API 4.1 Simple Example 4.2 @FixMethodOrder Example 4.3 Group Test Example 4.4 RunListener Example 4.5 Timeout Example 5. Conclusion 1. Introduction JUnit is ...

Read More »

Java Nio Tutorial for Beginners

This article is a beginners tutorial on Java NIO (New IO). We will take a high level look at this API which provides an alternative to Java IO. The Java NIO API can be viewed here. The example code demonstrates use of the core abstractions in this topic. The example code in this article was built and run using: Java ...

Read More »

Apache Lucene Hello World Example

 1. Introduction In this example, I would like to show you how to get started with Apache Lucene and write a simple Hello World program. Apache Lucene is an open source tool that provides full text searching and indexing features. Apache Lucene site has excellent details of the features and examples. However, the examples on the site are very detailed. Here, ...

Read More »

JUnit Test Case Example for Web Application

In this tutorial, we shall show users the usage of JUnit Example Web Application. We will see how we can test our web applications and what are the technologies that we need to work with. Table Of Contents 1. Introduction 2. Technology Stack 3. What is JUnit? 4. Ways to test Web Applications 5. JWebUnit Introduction 6. Project Setup 6.1 ...

Read More »

Get Xpath From Html Example

In this example we will learn how to find the XPath of a given element in HTML. We will try to use different tools to achieve this. 1. Introduction XPath is a W3C recommendation. It can be used to navigate through elements and attributes in an XML document. It is a syntax for defining parts of an XML document. It ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns