ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

What is Lambda Expressions and Functional Interfaces in Java 8 ?

user-image
تم إضافة السؤال من قبل Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
تاريخ النشر: 2014/09/22

Lambda Expressions are a simple way to express instances of single-method anonymous classes more compactly.

 

Take a look on these examples

 

What about Functional Interfaces

If you have used Runnable, Callable and other such Single Abstract Method interfaces, Java8 gives you ability to create such interfaces using @FunctionalInterface annotation and you can use Lambda Expressions to instantiate them.

 

You can read more on Functional Interfaces here

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟