Notes
Notes
Topics To Cover:
Core Java:
1. Collection Framework
2. Swing Part:
=>Checking Progress of Student
=>Problem/Error Correction
-----------------------------------------------------------------------------------
-----------------------
Core Java:
1. Collection Framework
OCJP1. What are the three different meanings of Collection?
Ans:
a) In English - Collection represent 'Group of Items'
b) java.util.Collection - It is an "interface" [OCJP2], act as parent of all other
collection types
c) java.util.Collections - It is a "class" [OCJP3], it provides some useful 'static
fn'
to perform operation on Collection like
sort, shuffle, binarySearch, reverse,etc.
Example of Compaction:
Before Insert 20 After
See Fig1-21-Nov-2020