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 Basics & I/O Programs
11 practical Java programs for learning basics & i/o.
🔍
Beginner
01
View Program →Add Two Numbers
Adds two fixed integers and prints the result.
beginnerArithmetic
02
View Program →Calculate Remainder
Finds the remainder left over when one integer is divided by another.
beginnerArithmetic
03
View Program →Divide Two Numbers
Divides one fixed integer by another and prints the result.
beginnerArithmetic
04
View Program →Hello, World
The first program every Java developer writes.
beginnerFundamentals
05
View Program →Multiply Two Numbers
Multiplies two fixed integers and prints the result.
beginnerArithmetic
06
View Program →Print Multiple Lines
Prints several lines of text to the console.
beginnerFundamentals
07
View Program →Print Name
Stores a name in a variable and prints it to the console.
beginnerFundamentals
08
View Program →Subtract Two Numbers
Subtracts one fixed integer from another and prints the result.
beginnerArithmetic
09
View Program →Sum of Two Numbers
Reads two integers from the console and prints their sum.
beginnerI/O
10
View Program →Swap Two Numbers Using Third Variable
Swaps the values of two integers using a temporary third variable.
beginnerVariables
11
View Program →Swap Two Numbers Without Third Variable
Swaps the values of two integers without using any extra storage.
beginnerVariables