Collection Interface 2
Collection Interface 2
=> Collection :-
-> Collection is an interface which is present in
java.util package
-> Syntax : public interface Collection<E>
extends Iterable<E> { - }
-> Collection was introduced in JDK 1.2 version
-> Collection is an object which is used to
represent a group of individual objects as a single
unit
-> Collection interface is the root interface of
Collection Framework
-> There is no concrete class which implements
the Collection interface directly but there are
interfaces which inherit the Collection interface i.e.
List, Set & Queue
1
Smart Programming (Mohali, Chandigarh India)
Call or Whats App Online & Industrial Training: +91 62838-30308
7. void clear();
3
Smart Programming (Mohali, Chandigarh India)
Call or Whats App Online & Industrial Training: +91 62838-30308
4
Smart Programming (Mohali, Chandigarh India)
Call or Whats App Online & Industrial Training: +91 62838-30308
6
Smart Programming (Mohali, Chandigarh India)
Call or Whats App Online & Industrial Training: +91 62838-30308
Websites: https://www.smartprogramming.in/
https://courses.smartprogramming.in
Android App:
https://play.google.com/store/apps/details?id=com.sma
rtprogramming
YouTube Channel:
https://www.youtube.com/c/SmartProgramming