Home » core java

Tag Archives: core java

Java Keywords Tutorial

1. Introduction In this article, we will look at words Java considers as Keywords. We will explore why they are used and what they are along with some usage examples. 2. What is a Keyword in Java and why do we need them? The Java Compiler uses some reserved words called Keywords to compile and run Java Programs. Each reserved ...

Read More »

Java ClassLoader Example

In this article, we’re going to discuss different types of Java ClassLoader, how they work and some examples to build our own implementation. 1. Introduction A class loader is an object that is responsible for loading classes. The ClassLoader class is an abstract class that uses a delegation model to search for classes and resources. Furthermore, the ClassLoader is part of JRE ...

Read More »

Java Variables Tutorial

1. Introduction In this article, we will look at one of the basic concepts of Java known as variables. We will see what a variable means, memory storage, types of variables, and some examples. 2. What is a Variable? In Java, a variable is a container to hold data values during execution of a java program. All variables have a ...

Read More »

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/set up, and start using the Apache Netbeans IDE in Java, as your JDK. You can also check this tutorial in the following video: Java NetBeans IDE Tutorial – video 1. Introduction Let us first start by downloading the required software from this link: NetBeans Download Download the appropriate executable from ...

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. You can also check how to install Java in the following video: How to Install Java – video 1. Introduction Java was first released in 1996 and since then has become one of the most widely ...

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 In this article, we will talk about RMI java examples and remote procedure call. (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 ...

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 »