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

 

 

Printf Java Example (with video)

In this post, we feature a comprehensive article about the printf Java method. We will see some examples using the System.out.printf method and examples where the printf method can format a string which contains formatting specifiers. 1. Introduction The Java PrintStream class has provided the printf method to write a formatted string to the PrintStream object since version 5. Here ...

Read More »

Java 8 Lambda Expressions Introduction Example

Hello readers! In this tutorial, we feature a comprehensive article on Java 8 Lambda Expressions.  1. Introduction To achieve the benefits of functional programming in Java, JDK developers introduced Lambda Expressions in Java 8 programming. A lambda expression is a nameless function which does not have the name, return type, and access modifiers A lambda expression instance can be assigned ...

Read More »

SQL Clone Database Example

Welcome readers, in this tutorial, we feature a comprehensive article in SQL clone database. Specifically we will understand how to clone an existing database and its content. 1. Introduction In SQL, Database Cloning represents a feature of ensuring backup of all or specific databases. The feature is implemented for purposes, Data restore that was mistakenly modified or deleted For application ...

Read More »

Java List Example

1. List Interface In this post, we feature a comprehensive article on Java List. We are going to check in-depth the java.lang.List in Java. We are also going to see some methods that are declared in the Collection interface which allow you to add an element, sort it, find the size, and remove an element (or elements) from a list ...

Read More »

Access Modifiers in Java Example

In this post, we will talk about the types of Access Modifiers in Java, which are private, default, protected, and public. Generally, there are two types of modifiers in Java: access modifiers and non-access modifiers. The access modifiers specify accessibility (scope) of a class, constructor, variable, method, or data member. 1. Access Modifiers in Java – Types We have 4 ...

Read More »

SQL Primary Key Example

Welcome readers, in this tutorial, we will understand the SQL Primary Key column that uniquely identifies a tuple in the database table. 1. Introduction SQL Primary Key is a column or multiple columns that uniquely identify a tuple in the database table. It contains unique values but cannot have null or duplicate It consists of multiple columns known as a ...

Read More »

Java Interface Example

In this post, we feature a comprehensive Java Interface Example. You can also check this tutorial in the following video: Java Interface Example – video 1. Introduction Java interface is an abstract type that defines methods that classes must implement. It can contain constants, abstract method signatures, default methods along with an implementation body, static methods along with an implementation ...

Read More »

Java Date Format Example

In this article, we will check the options available on Java Date Format. We are going to create a Java date formatter example. 1. Introduction Java has multiple packages providing various utility functions to make developer’s job easier. One such is the java.text package which includes utility classes for parsing and formatting numbers and dates, along with utility classes for ...

Read More »

Spring Boot HATEOAS in REST API Example

Welcome readers, in this tutorial, we will implement the HATEOAS principle to REST resources in a spring boot application. 1. Introduction Spring Boot is a module that provides rapid application development feature to the spring framework including auto-configuration, standalone-code, and production-ready code It creates applications that are packaged as jar and are directly started using embedded servlet container (such as ...

Read More »

Ternary Operator Java Example

1. Introduction The word “ternary“, in mathematical terms, is an operation that takes 3 variables and, when combined, produces a single output. In Java, as in other languages such as JavaScript or Python, the ternary, or conditional operator, is the only operator that takes 3 operands and produces a value. In this example we will examine the syntax and the ...

Read More »