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 Array Length Example

In this post, we feature a comprehensive Java Array Length Example. The article talks about the length property of Arrays in Java and demonstrates its usage through some examples. 1. Introduction Arrays are one of the most versatile data structure found in the programming paradigm, be it any programming language. An array is a group of similar datatype variables and ...

Read More »

Reverse Array Java Example

ٌHow would you answer this question: how do you reverse an array in Java?  Well, there are multiple ways to solve this problem: Revere array in Place:You can reverse array by writing your own function, which loops through the array and swaps elements until the array is sorted. You can reverse an array by converting array to ArrayList and then ...

Read More »

Spring WebSockets Example

Hello there. Thank you for showing interest in Spring WebSockets Example. In this example we will learn how to send and receive messages between a browser and a server over a WebSocket. A WebSocket is used to build an interactive web application. WebSocket is a lightweight layer above TCP. We will be creating a football live commentary web application to ...

Read More »

Java Collections Tutorial

1. Introduction A collection is a group of objects and treated as a single unit. It is used to store, retrieve, and manipulate aggregate data. Java has provides a collection framework which contains interfaces, classes, and algorithms since version 1.2 and enhanced it over the time. Here are some enhancements: Major enhancement at version 5, including generic type.Added more interfaces ...

Read More »

Java Stack Example

1. Introduction A stack is a container of objects that are inserted and removed according to the last-in-first-out (LIFO) principle. In the stacks, only two operations are allowed-  push the item into the stackpop the item out of the stack. A stack is a limited access data structure. Elements can be added and removed from the stack only at the top.  push adds ...

Read More »

Android App Development: Kotlin vs Java

1. Overview In this post, we look at how to develop Android Apps with Android Studio using Kotlin and Java. Eclipse setup for Android is also included in this article. Kotlin vs Java analysis is explained with pros and cons of each programming language. Table Of Contents 1. Overview 2. Android App Development: Kotlin vs Java 2.1. Prerequisites 2.2. Download ...

Read More »

SQL Copy Table Example

Welcome readers, in this tutorial, we will learn how to create an exact copy of an existing table in the same or different database. 1. Introduction Cloning or Copying a table is an important phenomenon that helps developers rescuing disaster recovery situations or to perform something without affecting the original table. To start with this tutorial, we are hoping that ...

Read More »

Initialize Array Java Example

In this article, we are going to see the initialize array Java Example. We will cover the following things in this article: What are Arrays in Java?Array TypeArray ElementsCreating an array variableAccessing array ElementsInitialize array Java Example 1. What are Arrays in Java In java programming language arrays are objects.Arrays can contain empty, one or more than one element in ...

Read More »

Apache Commons BeanUtils Example

1. Introduction Apache Common BeanUtils is one of the most common Java library. The latest version at the time of writing is 1.9.3 and published at September 26, 2016. BeanUtils provides utility methods for populating JavaBeans properties. In this example, I will demonstrate the following methods: static Object cloneBean(Object bean) – Clones a bean even if the bean class does ...

Read More »

SQL Constraints Example

Welcome readers, in this tutorial, we will understand the different SQL Constraints that maintain the data integrity inside a database table. 1. Introduction SQL Constraints are the restrictions that help maintain the data integrity inside a database table. Constraints can be divided into column level (i.e. limiting only column data) or table level (i.e. limiting whole data in a database ...

Read More »