Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
Programming
→
ASP Dot net Interview Questions in Programming
→
What is the difference between collection and stre...
1.
What is the difference between collection and stream?
Answer»
S.no
Collection API
Stream API
1.
Collection API is for storing the data in the
DIFFERENT
KINDS
of data structures.
Stream API is not a data
STRUCTURE
; it is used for computation of the data on the big set of objects
2.
A
FINITE
number of elements can be
STORED
in a data structure
An infinite number of features can be stored
3.
Consumption of elements is multiple times
Consumption of elements is only once.
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
Does order of specifiers matter in Java? Will static public void work for main() method?
Can the main method be declared final?
Why do we call System.gc() in Java
Best practices related to Java Collections Framework?
What is a Static Nested Class in Java?
C++ supports Pointers, while Java does not. Why?
Why do we use variable length arguments in Java?
What are the types of Base64 encoding in Java?
What enhancements Java 9 brought to Process API?
Constructor vs Method in Java
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies