+ 1
Java symbol ( -> ) and ( = )
Which one you prefer? did they same?
2 Answers
+ 7
-> is used in lambda expressions
= is used to assign a value to a variable
+ 2
you can currently see the arrow -> in the switch statement too (in Java 12 as a preview feature)