1.

What Are The Differences Between Array And Arraybuffer In Scala?

Answer»

Differences between ARRAY and ArrayBuffer in SCALA:

  • Array is fixed size array. We cannot change its size once its created.
  • ArrayBuffer is variable size array. It can INCREASE or decrease it’s size dynamically.
  • Array is something similar to Java’s PRIMITIVE ARRAYS.
  • ArrayBuffer is something similar to Java’s ArrayList.

Differences between Array and ArrayBuffer in Scala:



Discussion

No Comment Found