Azienda coinvolta
String str1="abc"; String str2="abc"; String str3=new String ("abc"); String str4=str1; How many memory allocation will be there.
Anonimo
Explained, (heap memory alloc and string pool mem)
Total 2 one in heap and one in string pool
Non lasciarti sfuggire opportunità e informazioni privilegiate seguendo le aziende dove vorresti lavorare.
Ricevi suggerimenti e aggiornamenti personalizzati avviando le tue ricerche.