showname this is a string scala> showname _ res1: () => Unit = , 2.scala> res1 res2: () => Unit = scala> res1() this is a string scala> def showname(s: String) = println("this is a string") showname: (s: String)Unit scala>, 3.showname :9: error: missing arguments for method showname; follow this method with `_' if you want to treat it as a partially applied function showname, 4.All of the above">
MCQs > IT & Programming > Scala > Read code and tell when do Scala functions execute?

Scala MCQs

Read the following code and tell when do Scala functions execute?

Answer

Correct Answer: All of the above

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Scala Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Scala Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it