In mathematical logic, a predicate is commonly understood to be a Boolean-valued function P: X→ {true, false}, called the predicate on X. Informally, a predicate is a statement that may be true or false depending on the values of its variables. It can be thought of as an operator or function that returns a value that is either true or false. For example, predicates are sometimes used to indicate set membership: when talking about sets,

Read more 0

Java has always been an Object Oriented programming language, it means we can't have a function without its class. Other programming languages like C++, PHP, Python, JavaScript and many more, where we write functions and use anywhere, all these languages support functional programming along with Object Oriented programming. Java introduced Functional interface & Lambda Expressions in Java 8, to leverage functional programming to reduce verbosity. What is functional Interface? A Functional Interface is an interface

Read more 1

Lambda Expression

Lambda expression is a concise representation of an anonymous function which can be passed as an argument to a method or stored in a variable. We call it anonymous function because it isn't associated with a particular class like a method does and it doesn't have a explicit name like a normal method. Like any regular method a lambda has a list of parameters, body, return type and list of exceptions which can be thrown.

Read more 0

New features introduced in java 8

New features introduced in java 8 Here are the list of high level features introduced in Java 8 along with lots of enhancement at complier and JVM level: 1. Lambda Expressions Lambda expression is a concise representation of an anonymous function which can be passed as an argument to a method or stored in a variable. Click Here more details 2. Functional Interface A Functional Interface is an interface which specifies exactly one abstract method.

Read more 0