-> operator | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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 Antworten
+ 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