Skip to content

A complete Java learning repository with clear notes, example programs, and coding practice questions ranging from basic concepts to OOP and interview-level problems. Ideal for beginners starting their programming journey and for learners who want a single place to revise Java fundamentals and prepare for technical interviews.

Notifications You must be signed in to change notification settings

Rishiraj-Pathak-27/Java-Complete-Notes

Repository files navigation

Java Complete Notes

Java

A comprehensive collection of Java programming notes and examples β€” from basic syntax and core concepts to interview practice problems. This repository is ideal for learners preparing for exams, coding interviews, or building a strong Java foundation.


🧠 About

This repository contains organized Java notes, example programs, and practice problems. The content is arranged topic-wise so you can easily learn, revise, and practice Java step by step.

Whether you're a beginner or preparing for interviews, this repo will help you strengthen your Java fundamentals.


πŸ“š Topics Covered

β˜• Java Fundamentals (variables, data types, input/output)
βž• Operators & Expressions
πŸ”€ Conditionals (if, switch)
πŸ” Loops (for, while, do-while)
🧩 Methods (Functions)
πŸ“¦ Arrays & ArrayLists
πŸ”€ Strings
πŸ—οΈ Object-Oriented Programming (OOP)
πŸ“ Practice Programs
πŸ’Ό Java Interview Questions
🌐 Platform Coding Questions


πŸ“ Repository Structure

β”œβ”€β”€ πŸ“ Exercise
β”‚   β”œβ”€β”€ πŸ“ conditionals
β”‚   β”‚   β”œβ”€β”€ β˜• conditionals.class
β”‚   β”‚   └── β˜• conditionals.java
β”‚   β”œβ”€β”€ πŸ“ loops
β”‚   β”‚   β”œβ”€β”€ β˜• loops.class
β”‚   β”‚   └── β˜• loops.java
β”‚   β”œβ”€β”€ πŸ“ patterns
β”‚   β”‚   β”œβ”€β”€ πŸ“ AdvancedPatterns
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• Solution.class
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• patterns.class
β”‚   β”‚   β”‚   └── β˜• patterns.java
β”‚   β”‚   β”œβ”€β”€ β˜• patterns.class
β”‚   β”‚   └── β˜• patterns.java
β”‚   β”œβ”€β”€ β˜• PS1.class
β”‚   β”œβ”€β”€ β˜• PS1.java
β”‚   β”œβ”€β”€ β˜• PS2.class
β”‚   β”œβ”€β”€ β˜• PS2.java
β”‚   β”œβ”€β”€ β˜• PS3.class
β”‚   β”œβ”€β”€ β˜• PS3.java
β”‚   β”œβ”€β”€ β˜• PS4.class
β”‚   β”œβ”€β”€ β˜• PS4.java
β”‚   β”œβ”€β”€ β˜• bookPS.class
β”‚   └── β˜• bookPS.java
β”œβ”€β”€ πŸ“ JavaInterviewQuestions
β”‚   └── πŸ“ java.md
β”œβ”€β”€ πŸ“ OOPS
β”‚   β”œβ”€β”€ πŸ“ Basics
β”‚   β”‚   β”œβ”€β”€ β˜• basicOops$Student.class
β”‚   β”‚   β”œβ”€β”€ β˜• basicOops.class
β”‚   β”‚   └── β˜• basicOops.java
β”‚   β”œβ”€β”€ πŸ“ FinalAndStatic
β”‚   β”‚   β”œβ”€β”€ β˜• Student.class
β”‚   β”‚   β”œβ”€β”€ β˜• finalAndStatic.class
β”‚   β”‚   └── β˜• finalAndStatic.java
β”‚   β”œβ”€β”€ πŸ“ Polymorphism
β”‚   β”‚   β”œβ”€β”€ β˜• Polymorphism$Cat.class
β”‚   β”‚   β”œβ”€β”€ β˜• Polymorphism$Dog.class
β”‚   β”‚   β”œβ”€β”€ β˜• Polymorphism$Lion.class
β”‚   β”‚   β”œβ”€β”€ β˜• Polymorphism.class
β”‚   β”‚   └── β˜• Polymorphism.java
β”‚   β”œβ”€β”€ πŸ“ PrivateMethods
β”‚   β”‚   β”œβ”€β”€ β˜• Student.class
β”‚   β”‚   β”œβ”€β”€ β˜• privateMethods.class
β”‚   β”‚   └── β˜• privateMethods.java
β”‚   β”œβ”€β”€ πŸ“ arraysInClass
β”‚   β”‚   β”œβ”€β”€ β˜• basics$Car.class
β”‚   β”‚   β”œβ”€β”€ β˜• basics$Student.class
β”‚   β”‚   β”œβ”€β”€ β˜• basics.class
β”‚   β”‚   └── β˜• basics.java
β”‚   β”œβ”€β”€ πŸ“ constructors
β”‚   β”‚   β”œβ”€β”€ πŸ“ questions
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• book$Book.class
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• book.class
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• book.java
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• empSalary$Employee.class
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• empSalary.class
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• empSalary.java
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• mobilePrice$Mobile.class
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• mobilePrice.class
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• mobilePrice.java
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• questionOne$Laptop.class
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• questionOne.class
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• questionOne.java
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• rectangleArea$Rectangle.class
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• rectangleArea.class
β”‚   β”‚   β”‚   └── β˜• rectangleArea.java
β”‚   β”‚   β”œβ”€β”€ β˜• constructorBasics$Student.class
β”‚   β”‚   β”œβ”€β”€ β˜• constructorBasics.class
β”‚   β”‚   └── β˜• constructorBasics.java
β”‚   β”œβ”€β”€ πŸ“ questions
β”‚   β”‚   β”œβ”€β”€ β˜• BankAccount.class
β”‚   β”‚   β”œβ”€β”€ β˜• Employee$getterSetter.class
β”‚   β”‚   β”œβ”€β”€ β˜• Employee.class
β”‚   β”‚   β”œβ”€β”€ β˜• Mobile.class
β”‚   β”‚   β”œβ”€β”€ β˜• Student.class
β”‚   β”‚   β”œβ”€β”€ β˜• basicClass$Car.class
β”‚   β”‚   β”œβ”€β”€ β˜• basicClass.class
β”‚   β”‚   β”œβ”€β”€ β˜• basicClass.java
β”‚   β”‚   β”œβ”€β”€ β˜• getterSetter.class
β”‚   β”‚   β”œβ”€β”€ β˜• getterSetter.java
β”‚   β”‚   β”œβ”€β”€ β˜• mobilePhone.class
β”‚   β”‚   β”œβ”€β”€ β˜• mobilePhone.java
β”‚   β”‚   β”œβ”€β”€ β˜• studentMarks.class
β”‚   β”‚   β”œβ”€β”€ β˜• studentMarks.java
β”‚   β”‚   β”œβ”€β”€ β˜• validationLogic.class
β”‚   β”‚   └── β˜• validationLogic.java
β”‚   β”œβ”€β”€ πŸ“ this
β”‚   β”‚   β”œβ”€β”€ β˜• Demo.class
β”‚   β”‚   β”œβ”€β”€ β˜• Guns.class
β”‚   β”‚   β”œβ”€β”€ β˜• Validation.class
β”‚   β”‚   β”œβ”€β”€ β˜• example$Guns.class
β”‚   β”‚   β”œβ”€β”€ β˜• example.class
β”‚   β”‚   β”œβ”€β”€ β˜• example.java
β”‚   β”‚   β”œβ”€β”€ β˜• passwordValidation.class
β”‚   β”‚   β”œβ”€β”€ β˜• passwordValidation.java
β”‚   β”‚   β”œβ”€β”€ β˜• thisKeyword$Car.class
β”‚   β”‚   β”œβ”€β”€ β˜• thisKeyword.class
β”‚   β”‚   └── β˜• thisKeyword.java
β”‚   β”œβ”€β”€ β˜• Student.class
β”‚   β”œβ”€β”€ β˜• passByReference$Car.class
β”‚   β”œβ”€β”€ β˜• passByReference.class
β”‚   └── β˜• passByReference.java
β”œβ”€β”€ πŸ“ Platform_Questions
β”‚   β”œβ”€β”€ πŸ“ geeks
β”‚   β”‚   β”œβ”€β”€ β˜• ArrayLeaders.java
β”‚   β”‚   β”œβ”€β”€ β˜• fizzBuzz.class
β”‚   β”‚   β”œβ”€β”€ β˜• fizzBuzz.java
β”‚   β”‚   β”œβ”€β”€ β˜• reverseInGroups.class
β”‚   β”‚   └── β˜• reverseInGroups.java
β”‚   β”œβ”€β”€ πŸ“ hackerRank
β”‚   └── πŸ“ leetcode
β”‚       β”œβ”€β”€ β˜• buySellStock.class
β”‚       β”œβ”€β”€ β˜• buySellStock.java
β”‚       β”œβ”€β”€ β˜• fibonnaciNumber.class
β”‚       β”œβ”€β”€ β˜• fibonnaciNumber.java
β”‚       β”œβ”€β”€ β˜• firstAndLastPosition.class
β”‚       β”œβ”€β”€ β˜• firstAndLastPosition.java
β”‚       β”œβ”€β”€ β˜• medianOfTwoSorted.class
β”‚       β”œβ”€β”€ β˜• medianOfTwoSorted.java
β”‚       β”œβ”€β”€ β˜• mergeSortedArrays.class
β”‚       β”œβ”€β”€ β˜• mergeSortedArrays.java
β”‚       β”œβ”€β”€ β˜• missingNumber.class
β”‚       β”œβ”€β”€ β˜• missingNumber.java
β”‚       β”œβ”€β”€ β˜• rotateArrayRight.java
β”‚       β”œβ”€β”€ β˜• sortColors.class
β”‚       β”œβ”€β”€ β˜• sortColors.java
β”‚       β”œβ”€β”€ β˜• twoSum.class
β”‚       └── β˜• twoSum.java
β”œβ”€β”€ πŸ“ arrays
β”‚   β”œβ”€β”€ πŸ“ ArrayListBasics
β”‚   β”‚   β”œβ”€β”€ πŸ“ questions
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• addingOne.class
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• addingOne.java
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• arrayAddition.class
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• arrayAddition.java
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• evenRemover.class
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• evenRemover.java
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• mergeTwoSorted.class
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• mergeTwoSorted.java
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• minMax.class
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• minMax.java
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• removeDuplicates.class
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• removeDuplicates.java
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• reverse.class
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• reverse.java
β”‚   β”‚   β”‚   β”œβ”€β”€ β˜• reverseElements.class
β”‚   β”‚   β”‚   └── β˜• reverseElements.java
β”‚   β”‚   β”œβ”€β”€ β˜• arrayList.class
β”‚   β”‚   └── β˜• arrayList.java
β”‚   β”œβ”€β”€ πŸ“ forEachLoop
β”‚   β”‚   β”œβ”€β”€ β˜• forEach.class
β”‚   β”‚   └── β˜• forEach.java
β”‚   β”œβ”€β”€ πŸ“ questions
β”‚   β”‚   β”œβ”€β”€ β˜• ArrayLeaders.class
β”‚   β”‚   β”œβ”€β”€ β˜• ArrayLeaders.java
β”‚   β”‚   β”œβ”€β”€ β˜• DoubleArray.class
β”‚   β”‚   β”œβ”€β”€ β˜• DoubleArray.java
β”‚   β”‚   β”œβ”€β”€ β˜• OneAddedArray.class
β”‚   β”‚   β”œβ”€β”€ β˜• OneAddedArray.java
β”‚   β”‚   β”œβ”€β”€ β˜• absArray.class
β”‚   β”‚   β”œβ”€β”€ β˜• absArray.java
β”‚   β”‚   β”œβ”€β”€ β˜• addMulArray.class
β”‚   β”‚   β”œβ”€β”€ β˜• addMulArray.java
β”‚   β”‚   β”œβ”€β”€ β˜• addingOne.class
β”‚   β”‚   β”œβ”€β”€ β˜• addingOne.java
β”‚   β”‚   β”œβ”€β”€ β˜• appearsAtleastOnce.class
β”‚   β”‚   β”œβ”€β”€ β˜• appearsAtleastOnce.java
β”‚   β”‚   β”œβ”€β”€ β˜• arrayAvg.class
β”‚   β”‚   β”œβ”€β”€ β˜• arrayAvg.java
β”‚   β”‚   β”œβ”€β”€ β˜• arrayCopy.class
β”‚   β”‚   β”œβ”€β”€ β˜• arrayCopy.java
β”‚   β”‚   β”œβ”€β”€ β˜• arrayListToArray.class
β”‚   β”‚   β”œβ”€β”€ β˜• arrayListToArray.java
β”‚   β”‚   β”œβ”€β”€ β˜• arrayProduct.class
β”‚   β”‚   β”œβ”€β”€ β˜• arrayProduct.java
β”‚   β”‚   β”œβ”€β”€ β˜• arraySorted.class
β”‚   β”‚   β”œβ”€β”€ β˜• arraySorted.java
β”‚   β”‚   β”œβ”€β”€ β˜• containsDuplicate.class
β”‚   β”‚   β”œβ”€β”€ β˜• containsDuplicate.java
β”‚   β”‚   β”œβ”€β”€ β˜• countBetweenTwo.class
β”‚   β”‚   β”œβ”€β”€ β˜• countBetweenTwo.java
β”‚   β”‚   β”œβ”€β”€ β˜• countNegative.class
β”‚   β”‚   β”œβ”€β”€ β˜• countNegative.java
β”‚   β”‚   β”œβ”€β”€ β˜• countZeros.class
β”‚   β”‚   β”œβ”€β”€ β˜• countZeros.java
β”‚   β”‚   β”œβ”€β”€ β˜• divisibleByGiven.class
β”‚   β”‚   β”œβ”€β”€ β˜• divisibleByGiven.java
β”‚   β”‚   β”œβ”€β”€ β˜• elementEqualIndex.class
β”‚   β”‚   β”œβ”€β”€ β˜• elementEqualIndex.java
β”‚   β”‚   β”œβ”€β”€ β˜• elementFrequency.class
β”‚   β”‚   β”œβ”€β”€ β˜• elementFrequency.java
β”‚   β”‚   β”œβ”€β”€ β˜• elementSearch.class
β”‚   β”‚   β”œβ”€β”€ β˜• elementSearch.java
β”‚   β”‚   β”œβ”€β”€ β˜• elementSum.class
β”‚   β”‚   β”œβ”€β”€ β˜• elementSum.java
β”‚   β”‚   β”œβ”€β”€ β˜• evenOdd.class
β”‚   β”‚   β”œβ”€β”€ β˜• evenOdd.java
β”‚   β”‚   β”œβ”€β”€ β˜• evenSquare.class
β”‚   β”‚   β”œβ”€β”€ β˜• evenSquare.java
β”‚   β”‚   β”œβ”€β”€ β˜• evenSum.class
β”‚   β”‚   β”œβ”€β”€ β˜• evenSum.java
β”‚   β”‚   β”œβ”€β”€ β˜• findMid.class
β”‚   β”‚   β”œβ”€β”€ β˜• findMid.java
β”‚   β”‚   β”œβ”€β”€ β˜• findX.class
β”‚   β”‚   β”œβ”€β”€ β˜• findX.java
β”‚   β”‚   β”œβ”€β”€ β˜• firstEven.class
β”‚   β”‚   β”œβ”€β”€ β˜• firstEven.java
β”‚   β”‚   β”œβ”€β”€ β˜• firstLastElement.class
β”‚   β”‚   β”œβ”€β”€ β˜• firstLastElement.java
β”‚   β”‚   β”œβ”€β”€ β˜• firstLastEqual.class
β”‚   β”‚   β”œβ”€β”€ β˜• firstLastEqual.java
β”‚   β”‚   β”œβ”€β”€ β˜• firstPositive.class
β”‚   β”‚   β”œβ”€β”€ β˜• firstPositive.java
β”‚   β”‚   β”œβ”€β”€ β˜• firstRepeating.java
β”‚   β”‚   β”œβ”€β”€ β˜• frequencyNumArray.class
β”‚   β”‚   β”œβ”€β”€ β˜• frequencyNumArray.java
β”‚   β”‚   β”œβ”€β”€ β˜• greaterElementCount.class
β”‚   β”‚   β”œβ”€β”€ β˜• greaterElementCount.java
β”‚   β”‚   β”œβ”€β”€ β˜• greaterThanAverage.class
β”‚   β”‚   β”œβ”€β”€ β˜• greaterThanAverage.java
β”‚   β”‚   β”œβ”€β”€ β˜• greaterThanHundred.class
β”‚   β”‚   β”œβ”€β”€ β˜• greaterThanHundred.java
β”‚   β”‚   β”œβ”€β”€ β˜• greaterThanX.class
β”‚   β”‚   β”œβ”€β”€ β˜• greaterThanX.java
β”‚   β”‚   β”œβ”€β”€ β˜• lastAppearance.class
β”‚   β”‚   β”œβ”€β”€ β˜• lastAppearance.java
β”‚   β”‚   β”œβ”€β”€ β˜• lessElementCount.class
β”‚   β”‚   β”œβ”€β”€ β˜• lessElementCount.java
β”‚   β”‚   β”œβ”€β”€ β˜• linearSearch.class
β”‚   β”‚   β”œβ”€β”€ β˜• linearSearch.java
β”‚   β”‚   β”œβ”€β”€ β˜• max.class
β”‚   β”‚   β”œβ”€β”€ β˜• max.java
β”‚   β”‚   β”œβ”€β”€ β˜• mergeArrays.class
β”‚   β”‚   β”œβ”€β”€ β˜• mergeArrays.java
β”‚   β”‚   β”œβ”€β”€ β˜• mergeSort.class
β”‚   β”‚   β”œβ”€β”€ β˜• mergeSort.java
β”‚   β”‚   β”œβ”€β”€ β˜• mergeSortedArrays.class
β”‚   β”‚   β”œβ”€β”€ β˜• mergeSortedArrays.java
β”‚   β”‚   β”œβ”€β”€ β˜• min.class
β”‚   β”‚   β”œβ”€β”€ β˜• min.java
β”‚   β”‚   β”œβ”€β”€ β˜• minMaxDiff.class
β”‚   β”‚   β”œβ”€β”€ β˜• minMaxDiff.java
β”‚   β”‚   β”œβ”€β”€ β˜• missingNumber.class
β”‚   β”‚   β”œβ”€β”€ β˜• missingNumber.java
β”‚   β”‚   β”œβ”€β”€ β˜• multipleOfTen.class
β”‚   β”‚   β”œβ”€β”€ β˜• multipleOfTen.java
β”‚   β”‚   β”œβ”€β”€ β˜• negativeElements.class
β”‚   β”‚   β”œβ”€β”€ β˜• negativeElements.java
β”‚   β”‚   β”œβ”€β”€ β˜• oddIndicesArray.class
β”‚   β”‚   β”œβ”€β”€ β˜• oddIndicesArray.java
β”‚   β”‚   β”œβ”€β”€ β˜• oddSquare.class
β”‚   β”‚   β”œβ”€β”€ β˜• oddSquare.java
β”‚   β”‚   β”œβ”€β”€ β˜• oddsZero.class
β”‚   β”‚   β”œβ”€β”€ β˜• oddsZero.java
β”‚   β”‚   β”œβ”€β”€ β˜• perfectSquares.class
β”‚   β”‚   β”œβ”€β”€ β˜• perfectSquares.java
β”‚   β”‚   β”œβ”€β”€ β˜• positiveCheck.class
β”‚   β”‚   β”œβ”€β”€ β˜• positiveCheck.java
β”‚   β”‚   β”œβ”€β”€ β˜• presentQuery.class
β”‚   β”‚   β”œβ”€β”€ β˜• presentQuery.java
β”‚   β”‚   β”œβ”€β”€ β˜• removeDuplicates.class
β”‚   β”‚   β”œβ”€β”€ β˜• reverseArray.class
β”‚   β”‚   β”œβ”€β”€ β˜• reverseArray.java
β”‚   β”‚   β”œβ”€β”€ β˜• rotateArrayLeft.class
β”‚   β”‚   β”œβ”€β”€ β˜• rotateArrayLeft.java
β”‚   β”‚   β”œβ”€β”€ β˜• rotateArrayRight.class
β”‚   β”‚   β”œβ”€β”€ β˜• rotateArrayRight.java
β”‚   β”‚   β”œβ”€β”€ β˜• secondElement.class
β”‚   β”‚   β”œβ”€β”€ β˜• secondElement.java
β”‚   β”‚   β”œβ”€β”€ β˜• secondLargest.class
β”‚   β”‚   β”œβ”€β”€ β˜• secondLargest.java
β”‚   β”‚   β”œβ”€β”€ β˜• secondSmallest.class
β”‚   β”‚   β”œβ”€β”€ β˜• secondSmallest.java
β”‚   β”‚   β”œβ”€β”€ β˜• segregateZeroOne.class
β”‚   β”‚   β”œβ”€β”€ β˜• segregateZeroOne.java
β”‚   β”‚   β”œβ”€β”€ β˜• segregateZeroOneTwo.class
β”‚   β”‚   β”œβ”€β”€ β˜• segregateZeroOneTwo.java
β”‚   β”‚   β”œβ”€β”€ β˜• squareArray.class
β”‚   β”‚   β”œβ”€β”€ β˜• squareArray.java
β”‚   β”‚   β”œβ”€β”€ β˜• sumUntilNegative.class
β”‚   β”‚   β”œβ”€β”€ β˜• sumUntilNegative.java
β”‚   β”‚   β”œβ”€β”€ β˜• targetAppearance.class
β”‚   β”‚   β”œβ”€β”€ β˜• targetAppearance.java
β”‚   β”‚   β”œβ”€β”€ β˜• twoSum.class
β”‚   β”‚   β”œβ”€β”€ β˜• twoSum.java
β”‚   β”‚   β”œβ”€β”€ β˜• wavyArray.class
β”‚   β”‚   └── β˜• wavyArray.java
β”‚   β”œβ”€β”€ β˜• arrayBasics.class
β”‚   └── β˜• arrayBasics.java
β”œβ”€β”€ πŸ“ conditionals
β”‚   β”œβ”€β”€ β˜• cond.class
β”‚   └── β˜• cond.java
β”œβ”€β”€ πŸ“ literals
β”‚   β”œβ”€β”€ β˜• lit.class
β”‚   └── β˜• lit.java
β”œβ”€β”€ πŸ“ loops
β”‚   β”œβ”€β”€ β˜• loops.class
β”‚   └── β˜• loops.java
β”œβ”€β”€ πŸ“ methodsorFunctions
β”‚   β”œβ”€β”€ πŸ“ builtIn
β”‚   β”‚   β”œβ”€β”€ β˜• math.class
β”‚   β”‚   └── β˜• math.java
β”‚   └── πŸ“ userDefined
β”‚       β”œβ”€β”€ πŸ“ questions
β”‚       β”‚   β”œβ”€β”€ β˜• add.class
β”‚       β”‚   β”œβ”€β”€ β˜• add.java
β”‚       β”‚   β”œβ”€β”€ β˜• armstrong.class
β”‚       β”‚   β”œβ”€β”€ β˜• armstrong.java
β”‚       β”‚   β”œβ”€β”€ β˜• countDigits.class
β”‚       β”‚   β”œβ”€β”€ β˜• countDigits.java
β”‚       β”‚   β”œβ”€β”€ β˜• digitSum.class
β”‚       β”‚   β”œβ”€β”€ β˜• digitSum.java
β”‚       β”‚   β”œβ”€β”€ β˜• evenOdd.class
β”‚       β”‚   β”œβ”€β”€ β˜• evenOdd.java
β”‚       β”‚   β”œβ”€β”€ β˜• factorial.class
β”‚       β”‚   β”œβ”€β”€ β˜• factorial.java
β”‚       β”‚   β”œβ”€β”€ β˜• fibonnaci.class
β”‚       β”‚   β”œβ”€β”€ β˜• fibonnaci.java
β”‚       β”‚   β”œβ”€β”€ β˜• max.class
β”‚       β”‚   β”œβ”€β”€ β˜• max.java
β”‚       β”‚   β”œβ”€β”€ β˜• multipleFunction.class
β”‚       β”‚   β”œβ”€β”€ β˜• multipleFunction.java
β”‚       β”‚   β”œβ”€β”€ β˜• palindromicString.class
β”‚       β”‚   β”œβ”€β”€ β˜• palindromicString.java
β”‚       β”‚   β”œβ”€β”€ β˜• pascalTriangle.class
β”‚       β”‚   β”œβ”€β”€ β˜• pascalTriangle.java
β”‚       β”‚   β”œβ”€β”€ β˜• passwordValidation.java
β”‚       β”‚   β”œβ”€β”€ β˜• permutationAndCombination.class
β”‚       β”‚   β”œβ”€β”€ β˜• permutationAndCombination.java
β”‚       β”‚   β”œβ”€β”€ β˜• power.class
β”‚       β”‚   β”œβ”€β”€ β˜• power.java
β”‚       β”‚   β”œβ”€β”€ β˜• prime.class
β”‚       β”‚   β”œβ”€β”€ β˜• prime.java
β”‚       β”‚   β”œβ”€β”€ β˜• printHello.class
β”‚       β”‚   β”œβ”€β”€ β˜• printHello.java
β”‚       β”‚   β”œβ”€β”€ β˜• reverseNumber.class
β”‚       β”‚   β”œβ”€β”€ β˜• reverseNumber.java
β”‚       β”‚   β”œβ”€β”€ β˜• reverseString.class
β”‚       β”‚   β”œβ”€β”€ β˜• reverseString.java
β”‚       β”‚   β”œβ”€β”€ β˜• square.class
β”‚       β”‚   β”œβ”€β”€ β˜• square.java
β”‚       β”‚   β”œβ”€β”€ β˜• studentDetails.class
β”‚       β”‚   β”œβ”€β”€ β˜• studentDetails.java
β”‚       β”‚   β”œβ”€β”€ β˜• swapTwo.class
β”‚       β”‚   β”œβ”€β”€ β˜• swapTwo.java
β”‚       β”‚   β”œβ”€β”€ β˜• vowelCount.class
β”‚       β”‚   └── β˜• vowelCount.java
β”‚       β”œβ”€β”€ β˜• function.class
β”‚       β”œβ”€β”€ β˜• function.java
β”‚       β”œβ”€β”€ β˜• paraFunction.class
β”‚       β”œβ”€β”€ β˜• paraFunction.java
β”‚       β”œβ”€β”€ β˜• returnType.class
β”‚       └── β˜• returnType.java
β”œβ”€β”€ πŸ“ operators,precedence,associativity
β”‚   β”œβ”€β”€ πŸ“ arithmetics
β”‚   β”‚   └── β˜• arithmetic.java
β”‚   β”œβ”€β”€ πŸ“ assignments
β”‚   β”‚   └── β˜• assignment.java
β”‚   β”œβ”€β”€ πŸ“ increment_decrement
β”‚   β”‚   └── β˜• incr_decr.java
β”‚   β”œβ”€β”€ πŸ“ logicals
β”‚   β”‚   β”œβ”€β”€ β˜• logical.class
β”‚   β”‚   └── β˜• logical.java
β”‚   β”œβ”€β”€ πŸ“ relationals
β”‚   β”‚   └── β˜• relational.java
β”‚   β”œβ”€β”€ β˜• expression.class
β”‚   └── β˜• expression.java
β”œβ”€β”€ πŸ“ strings
β”‚   β”œβ”€β”€ β˜• str.class
β”‚   └── β˜• str.java
β”œβ”€β”€ πŸ“ userInput
β”‚   β”œβ”€β”€ β˜• ui.class
β”‚   └── β˜• ui.java
β”œβ”€β”€ πŸ“ variables
β”‚   β”œβ”€β”€ β˜• first.class
β”‚   └── β˜• first.java
β”œβ”€β”€ πŸ“ README.md
β”œβ”€β”€ β˜• hello.class
└── β˜• hello.java

Each folder contains Java programs related to that topic for hands-on practice.


πŸš€ How to Use These Notes

1️⃣ Clone the Repository

git clone https://github.com/Rishiraj-Pathak-27/Java-Complete-Notes.git

2️⃣ Open in an IDE

Use any Java IDE like:

  • IntelliJ IDEA
  • Eclipse
  • VS Code

3️⃣ Compile and Run Java Files

javac FileName.java
java FileName

4️⃣ Learn Step by Step

Start with
Variables β†’ Conditionals β†’ Loops β†’ Arrays β†’ OOP β†’ Practice Questions


🎯 Who Is This For?

βœ… Beginners learning Java
βœ… Students preparing for exams
βœ… Interview preparation
βœ… Anyone who wants quick Java revision


🀝 Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create a new branch
    git checkout -b feature-name
  3. Add your notes or programs
  4. Commit your changes
    git commit -m "Added new Java examples"
  5. Push and open a Pull Request

⭐ Support

If you find this repository helpful, consider giving it a ⭐ on GitHub β€” it helps others discover it too!


πŸ‘¨β€πŸ’» Author

Rishiraj Pathak
Aspiring Computer Engineer | Java Learner | Problem Solver


β€œPractice makes a programmer perfect.” β˜•

About

A complete Java learning repository with clear notes, example programs, and coding practice questions ranging from basic concepts to OOP and interview-level problems. Ideal for beginners starting their programming journey and for learners who want a single place to revise Java fundamentals and prepare for technical interviews.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages