Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


If you wanted to process a stream of names, extract the male names, and store them in a new list, what is the appropriate operation to be used?
Question Posted on 07 Jan 2021

Home >> Java >> Java8 Innards >> If you wanted to process a stream of names, extract the male names, and store them in a new list, what is the appropriate operation to be used?




If you wanted to process a stream of names, extract the male names, and store them in a new list, what is the appropriate operation to be used?
Choose the correct option from below list
(1)Stream.filter
(2)Stream.collect
(3)Stream.reduce
(4)Both Stream.reduce and Stream.collect

Answer:-(2)Stream.collect
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Choose the correct option based on this code segment
Which of the following is correct about Java 8 lambda expression?
In Functional Reactive programming, we pull the stream of data.
Stream operation iterations are internal over the source of elements.
Choose the correct option based on this code segment in Java8 Innards Qsn






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |