Is there an equivalent to LINQ in java 8?
Did lambda expression fill this role?
Asked
Active
Viewed 1.7k times
6
Omar.Nassar
- 379
- 1
- 3
- 13
Zied.Jabnoun
- 140
- 1
- 2
- 10
2 Answers
14
Java's Stream API is the closest thing to .NET's LINQ, in the sense that it allows you to query/manipulate collections in a functional style.
dcastro
- 63,281
- 21
- 137
- 151
7
No, lambda expressions are not LINQ equivalent. LINQ (at least parts of it) uses lamba expressions for some functionality. But they're fundamentally different things.
- Lambda expressions: expressions used as anonymous functions
- LINQ: Language integrated query.
Pablo Santa Cruz
- 170,119
- 31
- 233
- 283
-
Can you provide some more explanation as to why they are different? Their syntax looks very similar. – Quazi Irfan May 17 '18 at 07:41