Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago. Improve this question (Please excuse me if i got the title incorrect, I believe it is binding but if anything let me know
Tag: stack-memory
How are strings passed into methods in java (In terms of memory)
When we call methods, if you are passing in a primitive type, that value is put on the stack frame when calling the method. If you are passing in a reference type, if it’s not null, you would have already created it on the heap some where and what gets put on the stack is a reference to it. But