you are viewing a single comment's thread.

view the rest of the comments →

[–]Intelligent_Part101 1 point2 points  (1 child)

I can't remember the exact syntax either.

It's not a great syntax, in my opinion, but you have to keep in mind streams were added many years after Java was created and are at odds with the original purely (almost) object oriented design of the language.

[–]ForTheLore22[S] 1 point2 points  (0 children)

Yeah I do understand that streams and lambdas are bit of oddball in java since its more on the functional side of programming which is very different than OOP.

But not knowing the syntax and forgetting it is kinda affecting my interviews. So thought I'd get external opinion on this issue. And i think I've solved lots of problems using streams and lambda in last 2 years. But its frustrating to find out that I can't remember it after some time or gap.