0Pricing
Java Academy · Lesson

Strings

Strings

Introduction

Hello,

The string data type is used in Java to hold our text data. Strings are reference data types, not primitive in Java.

When putting the text data into the variable of the String type, we need to put it between the double quote.

Example

Let's define a simple String.

String myText = "Coddy String";
← Back to Java Academy