Posts

Java Method References

 ജാവ 8-ൽ മെത്തേഡ് റഫറൻസ് എന്ന പുതിയ ഫീച്ചർ ജാവ നൽകുന്നു. ഫങ്ഷണൽ ഇന്റർഫേസിന്റെ രീതിയെ റഫർ ചെയ്യാൻ മെത്തേഡ് റഫറൻസ് ഉപയോഗിക്കുന്നു. ലാംഡ പദപ്രയോഗത്തിന്റെ ഒതുക്കമുള്ളതും എളുപ്പമുള്ളതുമായ രൂപമാണിത്. ഓരോ തവണയും നിങ്ങൾ ഒരു മെത്തേഡ് റഫർ ചെയ്യാൻ ലാംഡ എക്‌സ്‌പ്രഷൻ ഉപയോഗിക്കുമ്പോൾ, നിങ്ങൾക്ക് ലാംഡ എക്‌സ്‌പ്രഷൻ മാറ്റി മെത്തേഡ് റഫറൻസ് ഉപയോഗിച്ച് മാറ്റാവുന്നതാണ്. രീതി റഫറൻസുകളുടെ തരങ്ങൾ ജാവയിൽ ഇനിപ്പറയുന്ന രീതിയിലുള്ള റഫറൻസുകൾ ഉണ്ട്: ഒരു സ്റ്റാറ്റിക് രീതിയെക്കുറിച്ചുള്ള പരാമർശം. ഒരു ഉദാഹരണ രീതിയെക്കുറിച്ചുള്ള പരാമർശം. ഒരു കൺസ്ട്രക്റ്ററിലേക്കുള്ള റഫറൻസ്.

Lambda Expressions

Lambda Expressions : Lambda expressions are a new and important feature included in Java SE 8. They provide a clear and concise way to represent one method interface using an expression. Lambda expressions also improve the Collection libraries making it easier to iterate through, filter, and extract data from a Collection In addition, new concurrency features improve performance in multicore environments. Why Lambdas? A lambda expression is a block of code that you can pass around so it can be executed later, just once or multiple times. Syntax of Lambda Expressions A lambda expression consists of the following: A comma-separated list of formal parameters enclosed in parentheses The arrow token,  -> A body, which consists of a single expression or a statement block. Syantax Structure : (arg1, arg2...) -> { body } (type1 arg1, type2 arg2...) -> { body } Example : ( int a ,...

New Features in Java 8

  Lambda expressions Lambda Expressions   enable you to encapsulate a single unit of behavior and pass it to other code. You can use a lambda expressions if you want a certain action performed on each element of a collection, when a process is completed, or when a process encounters an error. Parallel operations With the addition of Lambda expressions to arrays operations, Java introduced a key concept into the language of internal iteration. Essentially as developers we’re used to use loop operations as one of the most basic programming idioms, right up there with if and else. The introduction of Lambda expressions turned that paradigm around with the actual iteration over a collection over which a Lambda function is invoked is carried out by the core library. You can think of this as an extension of iterators where the actual operation of extracting the next item from a collection on which to operate is carried out by an iterator. An exciting possibil...

Java 8

Image
Java 8 is a revolutionary release of the world’s #1 development platform. It includes a huge upgrade to the Java programming model and a coordinated evolution of the JVM, Java language, and libraries. Java 8 includes features for productivity, ease of use, improved polyglot programming, security and improved performance. Welcome to the latest iteration of the largest, open, standards-based, community-driven platform. Download   Java SE Development Kit 8 From Here