+ 2

-> operator

what is this -> operator to be call in java , what is the different nomenclature for the same ?

24th Jan 2022, 6:00 PM
Shubham Gawai
Shubham Gawai - avatar
2 Answers
+ 1
That's a New operator introduced in java 8 used in lamda expressions... Hope this clears more: https://www.delftstack.com/howto/java/java-arrow-operator/ https://stackoverflow.com/questions/15146052/what-does-the-arrow-operator-do-in-java edit: yes. as @ zemiak said, like this but also it is also called lamda statement I think.. https://www.sololearn.com/Discuss/2969139/?ref=app
24th Jan 2022, 6:16 PM
Jayakrishna 🇼🇳
+ 1
also in switch statement, where it is used different way
25th Jan 2022, 1:10 AM
zemiak