Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What is the value of z after executing this code? val y = List('a','b') val z = y::List('c')
Home
Scala - The Diatonic Syallable
What is the value of z after executing this code? val y = List('a','b') val z = y::List('c')
0
votes
asked
Aug 13, 2022
in
Scala - The Diatonic Syallable
by
AdilsonLima
What is the value of z after executing this code?
val y = List('a','b')
val z = y::List('c')
a. List(a,b,c)
b. List(List(a, b), c)
c. List(c,a,b)
d. List(c,List(a,b))
scala
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Aug 13, 2022
by
AdilsonLima
Correct answer is:- List(List(a, b), c)
...