6

Is there an equivalent to LINQ in java 8? Did lambda expression fill this role?

Omar.Nassar
  • 379
  • 1
  • 3
  • 14
Zied.Jabnoun
  • 140
  • 1
  • 2
  • 10

2 Answers2

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
  • 66,540
  • 21
  • 145
  • 155
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.

  1. Lambda expressions: expressions used as anonymous functions
  2. LINQ: Language integrated query.
Pablo Santa Cruz
  • 176,835
  • 32
  • 241
  • 292