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 Tuple Example

Hello readers, in this tutorial, we will learn about Tuple collection in Java. 1. Introduction A Tuple in Java is an ordered collection of different types of objects. The objects individually do not have an existing but collectively they have a meaning. Java in its real form but does not provide a Tuple functionality although there are different ways to ...

Read More »

Java Finally keyword Example

1. Introduction In this post, we will discuss the Finally keyword in Java. This keyword is used for a block as part of a try-catch. Java finally block is a block that is used to execute important codes such as closing connection, stream, etc. Java finally block is always executed whether an exception is handled or not. This ensures that the code inside ...

Read More »

Java Data Types Example

In this article, we will learn about the Java data types. We will see examples with Java Primitive Data Types, like Number, Floating-point, Boolean, and Character, and examples with non-primitive Types, like String, Object, Interface, and Array. Table Of Contents 1. Introduction 2. Data Type 2.1 Primitive Data Type 2.1.1 Number 2.1.2 Floating-point 2.1.3 Boolean 2.1.4 Character 2.2 Non-Primitive Data ...

Read More »

Java Syntax Rules

In this tutorial for beginners, we will explain the basics of Java and its Syntax Rules. Firstly, we will talk about the simple program syntax and we will analyze a simple program. After that, we will explicate the modifiers, enums, and comments. Last but not least we will talk about what keywords are allowed to use as classes, variables, or ...

Read More »

Basic Operators: % in Java

1. Introduction In this post, we will understand the Modulo operator – % in Java. Java Modulo operator or modulus operator is used to getting the remainder when we divide an integer with another integer. It is a binary operator as it is applied to two operands. The % character is the modulus operator in Java. Its syntax is: int ...

Read More »

Java Static Keyword Example

1. Introduction In this post, we feature a comprehensive example of the Java Static Keyword. We are also going to see the static variable in Java. Java programming language defines a list of keywords. Here is the static keyword definition from Oracle: static is a keyword which defines a variable as a class variable. Classes maintain one copy of class ...

Read More »

Java Heap and Stack

Hello readers, in this tutorial, we will learn about Heap space and Stack in Java. 1. Introduction In Java, the Java Virtual Machine (JVM) divides the memory into two parts i.e. Java Heap Space and Java Stack Memory. 1.1 Java Heap Space? Created by the JVM when it starts and the memory is allocated until the application is running Memory ...

Read More »

Top 10 Java Frameworks you should know

In this post, we will list the 10 most popular Java Frameworks that a developer should know. Through this framework comparison, you will understand which is for faster Java program development, decoupling business logic from the database queries, and automation of the manual procedures. Frameworks help in defining an application by specifying the layer metadata. Table Of Contents 1. Overview ...

Read More »

Java Unit Testing with Mockito Example

In this post, we feature a comprehensive article about Java Unit Testing with Mockito Example. 1. Introduction Java unit testing is a software testing which focuses on testing methods in a class. When a class depends on other classes and/or interfaces, we can test it by using Mockito to create and configure mock objects. In this example, first, I will ...

Read More »

Protected Java Keyword Example

In this article, we talk about protected Java keyword and Java access Modifiers. 1. Introduction A Java protected keyword is a Java access modifier. It can be assigned to variables, methods, constructors, and inner classes. The protected access modifier is accessible within the package. However, it can also accessible outside the package but through inheritance only.We can’t assign protected to ...

Read More »