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; } }
Java Memory Models: Default values for String variables and String arrays - YouTube | |
0 Likes | 0 Dislikes |
81 views views | 2,205 followers |
Education | Upload TimePublished on 28 Jan 2019 |
No comments:
Post a Comment