Home » Tag Archives: Java

Tag Archives: Java

Basic Operators – OR in Java

Hello readers, in this tutorial, we will learn the operator OR in Java programming language. 1. Introduction Java programming offer Operators that are used to perform various operations . In this tutorial, we’ll only cover the OR operator that falls under the Conditional and Bitwise category. 1.1 Conditional operators in Java Following table list the different conditional operators. Operator Description ...

Read More »

Char Array to String Java Example

Hello readers! In this tutorial we feature a comprehensive Char Array to String Java Example. We will learn different ways for this convertion. Meanwhile, you can also check the String to Char Array Example . 1. Introduction Java programming offers possible ways to convert a character array (char []) to String. A new String is allocated that represents the sequence ...

Read More »

Remove element from an Array Java Example

Hello readers, in this tutorial, we will learn two different ways to remove an element from an array. 1. Introduction In Java programming, Arrays represent an index-based object that consists of the same data type elements. The array elements are stored in a common memory location and can store only a fixed number of elements. Arrays offer, Code Optimization Random ...

Read More »

Java Cheat Sheet

In this post, we feature a Java cheat sheet. In this tutorial, we will see the Java features and the API classes of Java in detail. 1. Overview We look at the features of Java in this article. Java is used for developing software and executing the code. Java code is converted into bytecode after compilation. The java interpreter runs ...

Read More »

Java System.out.println() Example

Hello readers, in this tutorial we will learn the Java System.out.println() statement. 1. Introduction In Java, System.out.println() is a statement that prints the output to the console. In Java, this complete statement is divided into three parts, System is a final class in the java.lang package. This class is responsible to provide input/output streams, access to the environment variables etc ...

Read More »

Java vs C++: The Most Important Differences

In this post, we feature a comprehensive article about Java vs C++ and their most important differences. Java and C++ are the object-oriented programming languages. C++ is platform dependent and Java is platform independent language. In this tutorial, we see the features of Java and C++ to see the differences. Table Of Contents 1. Overview 2. Java vs C++ 2.1. ...

Read More »

Java Max Int Example

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 two’s complement integer, which has a range from [ -2^31,2^31-1].  Create a new class with name MaxIntegerExample1 and copy-paste the following code : ...

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 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 8 Functional Interfaces Introduction Example

Hello readers! In this tutorial, we will learn the amazing feature of Java 8 Functional Interfaces. 1. Introduction To achieve the benefits of functional programming in Java, JDK developers introduced Functional Interfaces/Single Abstract Method (SAM) Interfaces in Java 8 programming. A functional interface is an interface that has only one abstract method A functional interface can have multiple default and ...

Read More »