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 ....



Java Pointers (References) Example

1. Overview In this article, we will take a look at the comparison of Java Pointers (References ) with C++ Pointers. Java has four types of references which are strong, weak, soft and phantom references. In C++, you can use references and pointers. 2. Java Pointers (References) 2.1 Prerequisites Java 8 is required on the Linux, windows or mac operating ...

Read More »

Java Tic Tac Toe Program

This post is about creating a simple elegant Java Tic Tac Toe game, with ability to play human vs human and computer vs human. We will build the game incrementally with each feature added to the design. 1. Java Tic Tac Toe: Introduction This entire program requires only Java and apart from it does not require any library etc. Listed ...

Read More »

Multiple Inheritance Java Example

1. Introduction Multiple inheritance means that a class inherits fields and methods from more than one parent. Java class does not support multiple inheritance as it cannot have more than one parent. Java supports multiple inheritance via interface because an interface can have more than one parent. You can also check the Java Inheritance Tutorial in the following video: Java ...

Read More »

How to call a method in Java

In this article, we will show you how to call a method in Java. A method in java is a collection of statements that are grouped together to perform an operation. You can pass data, known as parameters, into a method. Methods are also known as functions. Each method has its own name.  When that name is encountered in a program, the execution ...

Read More »

Setting Up EhCache Without the XML Hassle

1. Introduction In this example, we will go over an easy way to set up EhCache without the XML hassle. This example utilizes the simplicity of Spring Boot and Spring’s Cache annotations. If you are on this page, I can assume you are likely familiar with EhCache. But, just in case, let’s do a short recap. EhCache is an open-source, ...

Read More »

Java Print Array Example

In this post, we feature a comprehensive article about how to print a Java array. 1. Introduction Each variable holds values, but the array variable holds multiple values of the same type. In other words, the group of similar types of data grouped under one variable is called Array. You can access array values using its index. An Array is ordered ...

Read More »

Min Heap Java Example

In this article, we will explain what Min Heap is in Java using examples. We shall discuss Heap Data Structure and its implementation in Java. 1. Introduction Heap is a binary tree-based data structure. Now let us understand each word in this sentence in greater detail. Tree:- A tree is a hierarchy based data structure, you have a certain order ...

Read More »

Hibernate Show SQL Example

This is another example of the hibernate series. Here, we feature a comprehensive article about the Hibernate Show SQL. Hibernate is a feature-rich Object Relational Mapping tool. It offers very fine-tuned debugging capabilities by enabling logs at various levels. In this article, I am going to show how SQL queries can be printed in a hibernate application. 1. Hibernate Configuration ...

Read More »

Java print to console Example

In this post, we feature a comprehensive article about the Java print to console Example. We will have a look at the System.console, the methods provided and its differences. 1. Java Console class The class provides methods to access the character-based console device. If the virtual machine has a console then it is represented by a unique instance of ...

Read More »

Java Packages – How to use them

 1. Introduction We look at java packages in this article. If you want to learn java, java packages topic will be a great start. We look at code samples to present how to use the java packages. 2. Java Packages Java packages help in avoiding naming collisions, access control, and separation of modules.They help in making usage of interfaces, annotations, ...

Read More »