Home » core java

Tag Archives: core java

Java 12 Garbage Collector Example

The LISP language had the first garbage collector back in 1959. Since then many languages like Java have adopted Garbage collection for automatic memory management. Today we will look at the Shenandoah garbage collector. 1. Introduction Garbage Collection is Java’s automatic memory management method. Garbage Collection occurs in the Java Heap memory whenever the Java heap memory is full. There ...

Read More »

Java Netbeans IDE Tutorial

In this tutorial, we will demonstrate how to download, install/setup, and start using the Apache Netbeans IDE as your Java Development Environment. 1. Introduction Let us first start by downloading the required software from this link: NetBeans Download Download the appropriate executable from this link. If you’re a Windows user, then an .exe executable can be downloaded or even a ...

Read More »

Download and Install Java Development Kit (JDK) 13

In this article, we will see how to download and install Java Development Kit 13, which is a non-LTS version for a Windows system. 1. Introduction Java was first released in 1996 and since then has become one of the most widely used object-oriented programming languages. The most recent version of Java is 15 with Java 16 in the works. ...

Read More »

Introduction to Java Bytecode

This is an introduction about Java Bytecode using examples. 1. Introduction Java is an extremely popular generic, object-oriented programming language. It is based on the “Write once, run anywhere (WORA)” principles. Java is architecture-neutral and portable. Java source code once compiled can be run on any operating system and any hardware. Example: the Java source code written on a 64-bit ...

Read 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 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 »

Wrapper Class Java Example

1. What is a wrapper class A wrapper class in Java is a way to convert a primitive data type such as boolean, int, etc. into an object. Also, we can convert an object of a wrapper class into its corresponding primitive type. In this article we are going to talk about why we need wrapper classes, autoboxing, and autounboxing. ...

Read More »

How to create an Array in Java

In this article, we will see How to create an Array in Java. You can check how to use arrays in Java in the following video: Java Array Example – How to use Arrays in Java 1. What is an array? An array is a data structure used as a container to store a collection of elements with the same ...

Read More »

Java Max Int Example

In this article, we will implement a Java example to see how we can get the int (integer) max value in a program. 1. Introduction Int is one of the most popular primitive data types of java and we use it almost everywhere. This article explains technical specs about max int. 2. Java Max Int According to java, int data type is 32-bit signed ...

Read More »

Java Modulus Example

In this post, we feature a comprehensive article about Java Modulus operator, modulo otherwise. We are going to learn what does ‘%’ mean in Java. 1. Introduction This article will show the usage of the modulo operation in Java that computes the remainder after the division of 2 numbers. Java uses a specific arithmetic operator the Remainder Operator with the ...

Read More »