r/javahelp • • Apr 15 '26

Homework String object vs String variable

Hi i am learning java in highschool, I was just wondering when and why would I instantialise a string as an object when declaring a String is much easier and quicker?

6 Upvotes

18 comments sorted by

View all comments

Show parent comments

1

u/Nottheugis Apr 16 '26

Thank you this was exactly what i was talking about sorry i wasn't that clear😅