The output of the following code is | Scala Question 6

53. The output of the following code is -

object MyClass{
	def main(args:Array[String]) {
	    var a = 43
	    a += 4 
	    a -= 3
	    println(a)
	} 
}
  1. 43
  2. 44
  3. 45
  4. All of the above

Answer: B) 44

Comments and Discussions!

Load comments ↻






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