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

 

 

Hibernate Many to One Mapping Example

Welcome readers, in this tutorial, we will discuss the Hibernate many to one relationship mapping. As the name suggests, Many to One entity-relationship shows the association of multiple entities with a single entity. 1. Introduction Object-Relational Mapping or ORM is the programming technique to map application domain model objects to the relational database tables Hibernate is a Java-based ORM tool ...

Read More »

Java Modulus Example

In this post, we feature a comprehensive article about Java Modulus. 1. Introduction This article will show the usage of the modulo operation that computes the remainder after division of 2 numbers. Java use a specific arithmetic operator the Remainder Operator with the symbol %. 2. Java Modulus – Use Cases In this section we show same useful use cases ...

Read More »

Java char Primitive Type Example

1. What are Primitive Types in Java? The Java programming language is statically-typed, which means that all variables must first be declared before they can be used. This involves stating the variable’s type and name, as you’ve already seen: char gear = '1'; Above code tell the Java Compiler that a field named “gear” exists, holds character data, and has ...

Read More »

Java Extends Keyword Example

Hello readers, in this tutorial, we will learn the Java extends keyword. 1. Introduction In Java, a subclass can extend the properties of its parent class by using the extends keyword. In Java, java.lang.Object is the parent class of all classes. Do note, this is implicit and does not require to be specified explicitly A class can only extend a ...

Read More »

Java CSV Parsing Example

In this post, we feature a comprehensive Java CSV Parsing Example. CSV stands for Comma Separated Values. As Java developers, we frequently see the need to process CSV files. They are the most commonly used file format for the data interchange. CSV is the simple file format that organizes data in a tabular form and each value is delimited by ...

Read More »

Java Input Example

This article will feature a comprehensive Example on Java Input. We will look into various ways of obtaining user input in Java with relevant code examples. 1. Introduction User Input refers to the data that is sent to computer application for processing using an input device like keyboard. Computer application receives the keyboard device input in the form of an ...

Read More »

Spring Boot Bean Validation Example

In this example, we will demonstrate how to use Bean Validation in a Spring Boot REST application. 1. Introduction Data validation is a basic requirement for any application, especially for web applications that accept data as input. For example, you may want to ensure that an email address or credit card number sent in a request is valid. Before the ...

Read More »

Char to Int Java Example

1. Introduction This article will demonstrate the char to int Java conversion. In Java, char data type is single 16 bit unicode character and int data type is 32 bit signed two’s complement integer. To convert one data type to another, type casting is required. Type casting can be of two types: implicit type casting and explicit type casting. Since ...

Read More »

Array to String Java Example

1. Intro to Array in Java In java, arrays are a collection of similar types where type can be a String, Integer or an instance of a user defined class. int intArray[]; //declaring an array of integers intArray = new int[20]; // allocating memory to array As shown in above code snippet, we have declared intArray as an array of ...

Read More »

Selenium Name Locator Example

In this post, we feature a comprehensive Selenium Name Locator Example in Automation Scripts. 1. Introduction Selenium is used to automate browsers. Selenium WebDriver has found its place in test automation for web applications. It is used to create robust, browser-based regression automation suites and tests. It can be used for end to end testing of an application. This ensures ...

Read More »