Java Tutorial
🔍
What is OOP?Classes & ObjectsConstructorsAccess Modifiersthis Keywordstatic KeywordEncapsulationInheritancesuper KeywordMethod OverridingOverloading vs OverridingPolymorphismUpcasting & Downcastinginstanceof OperatorAbstractionAbstract ClassesInterfacesMarker InterfacesAbstract Class vs InterfaceObject ClasstoString() Methodequals() & hashCode()
Collections OverviewCollections HierarchyIterable InterfaceCollection InterfaceMap Interfaceequals() and hashCode()IteratorListIteratorFail-fast vs Fail-safe IteratorConcurrentModificationExceptionArrayListLinkedListHashSetLinkedHashSetTreeSetQueuePriorityQueueDequeArrayDequeHashMapLinkedHashMapTreeMapConcurrentHashMapCopyOnWriteArrayListList vs Set vs MapChoosing the Right CollectionComparableComparatorComparable vs ComparatorCollections Utility ClassArrays Utility ClassImmutable CollectionsCollection vs CollectionsVectorHashtableStackArrayList Internal WorkingLinkedList Internal WorkingHashMap Internal WorkingTreeMap Internal Working
Java Programs
Practice Java programming with practical, runnable examples organized by topic and difficulty.
🔍
Java Program Topics
🔤
Strings
4 Programs
Reverse, palindrome, anagram and more.
View Programs →🔢Arrays
2 Programs
Array searching, sorting and more.
View Programs →🔄Control Flow
2 Programs
Loops, conditions and switch.
View Programs →👋Basics & I/O
11 Programs
Syntax, variables and console input.
View Programs →🧱OOP
2 Programs
Classes, inheritance and interfaces.
View Programs →⚠️Exceptions
2 Programs
Try, catch and custom exceptions.
View Programs →📦Collections
2 Programs
ArrayList, HashMap and the framework.
View Programs →🌀Recursion
2 Programs
Factorial, Fibonacci and more.
View Programs →