Creating a reference type

Report a typo

One of the most popular reference types is String. Your task is to create a String variable, assign the value Hello, learner! to it, and print it to the console.

Write a program in Java 17
public class Main {
public static void main(String[] args) {
// put your code here
}
}
___

Create a free account to access the full topic