MCQs > IT & Programming > Scala > Choose the correct description for both expressions?

Scala MCQs

Choose the correct description for both expressions, for the two expressions as following? expression 1 def m1(i:Int)=i+2 expression 2 (i:Int)=>i+2

Answer

Correct Answer: expression 1 is a method

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