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);
    }
}
  1. 75
  2. 59
  3. 26
  4. 10

Answer: C) 26

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.