Do they take up the same amount of memory? Array is an abstract class, so it doesn't carry any object header cost? The same for other arrays of Java primitives in Scala?
PS: I read somewhere that Scala stores them as primitive arrays in the JVM, but now I'm confused.
source
to share