Does it badly affect to memory When returning an object with new keyword?

后端 未结 0 886
生来不讨喜
生来不讨喜 2020-12-28 10:28

is this piece of code takes a lot of memory space because of using new keyword multiple times? private static LinkedList removeDuplicates(LinkedList linkedList) { re

相关标签:
回答
  • 消灭零回复
提交回复
热议问题