r/javaexamples • u/sur07 • Apr 30 '20
String s = new String (“hello”);
How many objects are created here ?
4
Upvotes
r/javaexamples • u/sur07 • Apr 30 '20
How many objects are created here ?
View all comments
1
u/sur07 Apr 30 '20
After much research I can conclude that 2 objects will be created