Physics, asked by Avinash2120, 7 months ago

difference between lambda and anonymous class ?????

Answers

Answered by Abhi5478
2

Answer:

Answer:

\huge{\orange{\underline{\underline{\mathcal Answer:-}}}}

\huge{\underline{\mathcal{\red{=>}}}}

Anonymous class is an inner class without a name, which means that we can declare and instantiate class at the same time. A lambda expression is a short form for writing an anonymous class. By using a lambda expression, we can declare methods without any name......

Answered by aviguru111
2

Answer:

\huge{\orange{\underline{\underline{\mathcal Answer:-}}}}

\huge{\underline{\mathcal{\red{=>}}}}

Anonymous class is an inner class without a name, which means that we can declare and instantiate class at the same time. A lambda expression is a short form for writing an anonymous class. By using a lambda expression, we can declare methods without any name......

Similar questions