Java Strings: Default values for String variables and String arrays

Published: 28 January 2019
on channel: colleen lewis
39,834
20

Being able to trace how programs work by drawing memory models is super important!

Here we focus on the default value of String variables and String arrays.

public class JavaPractice {
public static void main(String[] args){
String str1 = new String("Team");
String str2;
String[] arr = new String[3];
arr[1] = new String("Hello");
arr[2] = str1;
}
}


On this page of the site you can watch the video online Java Strings: Default values for String variables and String arrays with a duration of hours minute second in good quality, which was uploaded by the user colleen lewis 28 January 2019, share the link with friends and acquaintances, this video has already been watched 39,834 times on youtube and it was liked by 20 viewers. Enjoy your viewing!