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

 

 

Breadth First Search Java Example

1. Introduction Breadth First Search (BFS) is a traversing or searching algorithm for a tree or graph data structure. BFS starts at the tree root, and explores all of the neighbor nodes at the present depth prior to moving on to the nodes at the next depth level. A tree is a nonlinear data structure which includes a root and ...

Read More »

How to Compile Java Program

In this article we want to see how we can compile a Java program. In fact, High-level languages like Java, C, C++, etc. compile a program to its equivalent low-level code which can be understood and executed by the machine. 1. Requirements First of all we should install JDK, then follow the below steps: Open a command prompt window and go to the ...

Read More »

Basic Operators – Java += Operator

Hello readers, in this tutorial, we will learn the += operator in Java programming language. 1. Introduction Java programming offer Operators that are used to perform various operations in Java. In this tutorial, we’ll only cover the += operator that falls under the Compound Assignment operators’ category. 1.1 Compound assignment operators in Java Following table list the different compound assignment ...

Read More »

Java String Equals Example

In this article, we will focus on understanding the Java String equals method and == operator and its comparison. The examples in this article are created using eclipse photon IDE and Java 8. 1. String in Java We will first see how String works to understand more about the equals() method. In Java, Strings are objects. Strings can be created ...

Read More »

Doubly Linked List Java Example

In this article we will discuss the Doubly LinkedList Data structure in java. 1. What is a Doubly Linked List in Java? A Doubly Linked List is a linked data structure that consists of a set of sequentially linked records called nodes. Each node contains two fields, called links, that are references to the previous and to the next node in the ...

Read More »

Insertion Sort Java Example

In this article, we will learn about the sorting algorithm, specifically the Insertion sort Java algorithm. We will look at what Insertion sort is and how does it work. We will discuss when this performs the best and when it performs the worst and will also look into the time and space complexity of it. 1. Introduction Sorting refers to ...

Read More »

Is Java Safe ?

Is Java Safe ? Nearly half of the enterprise applications written in Java in the last 15 years making it the ubiquitous language in the enterprise world. Being so popular means applications written in Java are more prone to security threats. Though Java platform is written giving utmost importance to security, third party libraries and poorly written code make the ...

Read More »

Java Float Datatype Example

The Float class wraps a value of primitive type float in an object. An object of type Float contains a single field whose type is float. In addition, this class provides several methods for converting a float to a String and a String to float, as well as other constants and methods useful when dealing with float. Let us look ...

Read More »

Java Hash Example

In this post, we feature a comprehensive article on Java Hash. We shall explain what are hashes and how to use them in a Java data structure called Map. Table Of Contents 1. What is a hash 2. When we should use a hash 3. Hashing in Java 3.1 Deprecated map data structures 3.2 HashMap 3.3 Other Map types 3.4 ...

Read More »

Redis in Microservices Architecture Example

This post features a comprehensive tutorial with code examples on Redis in Microservices Architecture. 1. Redis – A brief overview Redis is an open source, in-memory data structure store, used as a database, cache and message broker. Fig. 1. Redis in Microservices It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial ...

Read More »