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.
Primitive and reference types
Creating a reference type
Report a typo
Write a program in Java 17
public class Main {
public static void main(String[] args) {
// put your code here
}
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.