MCQs > IT & Programming > Scala > Create an array buffer just like an array, except that you do not need to specify a size. Which implementation will adjust the allocated space automatically?

Scala MCQs

Create an array buffer just like an array, except that you do not need to specify a size. Which of the following implementation will adjust the allocated space automatically?

Answer

Correct Answer: scala> val buf = new ArrayBuffer[Int]() buf: scala.collection.mutable.ArrayBuffer[Int] = ArrayBuffer()

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Scala Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Scala Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it