A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Why streams in Java are called as abstraction?

Best Answers

An abstraction roughly means it's a general idea, rather than a specific thing. A cat is a specific thing. An animal is an abstraction. read more

Java 8 has introduced a more powerful, general concept called a Stream. This is the general idea that you can request more than one thing in a sequence. Whenever you ask for another one, you’ll get another one, until they all run out. read more

Streams support the method map, which takes a function (java.util.function.Function) as an argument to project the elements of a stream into another form. The function is applied to each element, “mapping” it into a new element. read more

Related Types

Image Answers