Quizzes
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
equals
:
Content language: English
Русский
Consider following code snippet: $a = 3; $b = '3'; if ($a === $b) echo '$a equals $b'; else echo '$a not equals $b'; What will be the result after executing the code above?
equals
case class Key(x: Int, var y: Int) val key = Key(1,2) val someMap = Map(key -> (1,2)) val newKey = key newKey.y = 3 val newMap = someMap + (newKey -> (1,3)) println(newMap(key)) What will be printed into the console?
equals
MUST NOT use "var" inside a case class
equals
← Prev
1
Next →
Sign Up Now
or
Subscribe for future quizzes