+ 1
String A= new String ( “Java”);
What does it mean
1 Antwort
+ 2
It creates two objects (in String pool and in heap) and one reference variable where the variable 'A' will refer to the object in the heap
heap is a memory location in ram usually allocated for dynamically assigned variables.