Home »
MCQs »
Scala MCQs
The output of the following block of code is | Scala Question 9
71. The output of the following block of code is -
object Demo {
def welcome( a: Int = 54, b: Int = 21 ){
println(a + b);
}
def main(args: Array[String]) {
welcome(5);
}
}
- 75
- 59
- 26
- 10
Answer: C) 26