β #JavaFromZero β Day 47
Custom sorting in Java
β’ Comparable β natural order (inside class)
β’ Comparator β custom order (outside class)
β’ Used when sorting objects with Collections.sort()
π Deep dive β notion.so/Day-47-Comparable-β¦#Java#CodingJourney
β #JavaFromZero β Day 45
Learning the Queue Interface
Process data in the right order.
β’ Queue β FIFO processing
β’ PriorityQueue β highest priority first
β’ Deque β insert/remove from both ends
π Deep dive β notion.so/Day-45-Queue-Interβ¦#Java#LearnEveryDay#Coding
β #JavaFromZero β Day 44
Understanding the Map Interface πΊοΈ
Store data as key β value pairs.
β’ HashMap β fastest lookup, no order
β’ TreeMap β keys always sorted
β’ Keys are unique, values can repeat
π Deep dive βnotion.so/Day-44-Map-Interfaβ¦#Java#LearnEveryDay
β #JavaFromZero β Day 41
Diving into Java Collections π§Ί
A powerful framework to store & manage groups of objects.
β’ List β ordered, duplicates
β’ Set β unique elements
β’ Map β keyβvalue pairs
β’
π Deep dive β notion.so/Introduction-to-Coβ¦#Java#LearnEveryDay
β #JavaFromZero β Day 37
Todayβs topic β Static & Instance Blocks β‘
β’ Static block β runs ONCE when class loads
β’ Instance block β runs before constructor on every object creation
π Deep dive βnotion.so/Day-37-Static-Instβ¦#Java#LearnEveryDay#OOP
β #JavaFromZero β Day 36
Todayβs topic β Anonymous Classes β‘
Create a class without a name for one-time use.
β’ Perfect for quick method overrides
β’ Great for Runnable, Comparator, listeners
Deep dive β notion.so/Day-36-Anonymous-Cβ¦#Java#OOP#LearnEveryDay
β #JavaFromZero β Day 31
Todayβs keyword β final π
Use it when things must NOT change.
β’ final variable β value locked
β’ final method β canβt be overridden
β’ final class β canβt be inherited
π Deep dive β notion.so/Day-31-Final-Keywoβ¦#Java#LearnEveryDay#OOP
β #JavaFromZero β Day 30
Todayβs OOP power tool β Interfaces π
Define what must be done, not how.
β’ 100% abstraction
β’ implements β class follows the contract
β’ Multiple inheritance enabled
π Deep dive β notion.so/Day-30-Interfaces-β¦#Java#OOP#LearnEveryDay
β #JavaFromZero β Day 29
Todayβs OOP pillar β Abstraction
Hide complexity. Show only essentials.
β’ abstract class β canβt be instantiated
β’ abstract methods β no body, child must override
π Deep dive βnotion.so/Day-29-Abstractionβ¦#Java#OOP#LearnEveryDay