Answer Posted / Vipra Verma
"The Queue in Scala is a linear data structure that follows the First-In-First-Out (FIFO) principle. It is used to store elements in an orderly manner, and the first element added will be the first one to be removed. The syntax for creating a queue in Scala is: import scala.collection.mutable.Queue or val queue = scala.collection.mutable.Queue[ElementType]"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers