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 Method Signature

In this post, we are going to talk about the Java method signature, method overloading, and method overriding by examples. The JDK version we use to compile the source code in this example is OpenJDK 13 and the IDE we use is Eclipse IDE 2020-03. 1. What is a method signature in Java In Java programming language, the method signature ...

Read More »

Java Reference Types

In this article, we talk about the Java Reference Types. First of all, we interpret what is a reference and why we use it. Furthermore we analyze the reference types. Last but not least, we explain the difference between Pass by value and pass by reference. 1. Introduction A reference is a value that is used to refer to another ...

Read More »

Binary Search Java Example

A popular searching algorithm in Java is the Binary Search algorithm. In this article, I will show you all about its implementation through examples. 1. Introduction Algorithms like Searching and Sorting are the most popular algorithms in any programming language. They are the basis to understand the fundamentals of programming. Binary Search in Java is a search algorithm that finds ...

Read More »

ToCharArray Java Example

In this article, we will learn how to convert a string to a char array using the toCharArray Java method. We will explore many ways of converting a string to an array of characters in different versions of Java. 1. charAt() method ( Verbose way ) In this way, we create a char array with the exact size of a ...

Read More »

Java Composition Example

In this article, we will see examples of the composition in Java, which is a very important aspect of Programming. 1. Introduction Association is the relation between two separate classes that establish through their Objects. Association can be one-to-one, one-to-many, many-to-one, many-to-many. In Object-Oriented programming, an Object communicates to other Objects to use functionality and services provided by that object. Composition and Aggregation are the ...

Read More »

Java RMI – Java Remote Method Invocation Example

1. What is RMI RMI (Remote Method Invocation) is an object-oriented way of RPC (Remote Procedure Call) to realize communication between distributed objects in a distributed computing environment. It allows an object to invoke methods on a remote object. Java RMI, a Java implementation of remote method invocation, consists of several APIs under java.rmi package. It allows a Java program ...

Read More »

Multidimensional Array Java Example

In this article, we will see what a multidimensional array is in Java, various syntaxes, and how we can use such arrays in real-world examples. 1. Introduction An array is a basic data type that holds multiple values of the same datatype. Each individual value can be accessed using a number based index relative to the first element in the ...

Read More »

Java Parse String Example

In this example, we shall learn about the different techniques to parse a String in Java. We will be demonstrating the StringTokenizer class, the String.split() method and live code examples to leverage these utilities. 1. Introduction The definition of “parse” in Wiktionary is – “To split a file or other input into pieces of data that can be easily stored ...

Read More »

Static Methods Java Example

1. Introduction In this article, we will take a look at Java Static Methods. Static methods are used for computational tasks or stateless functions. Static methods can be defined in java classes and interfaces. 2. Java Static Methods Example Static methods are not dependent on class instances. They do not operate on instance properties. They perform operations from the parameters ...

Read More »

Java Long Class Example

In this article, we will see examples of the Long class in the java programming language. 1. Introduction The Long class is simply a wrapper class for the primitive type long. It wraps the long primitive value to an object. An object of type Long contains a single field whose type is long. So what would be the benefit if wraps around the primitive data ...

Read More »