Welcome to the Java Programming Examples Repository! 🎉
This repository is a complete collection of Java codes including OOPs concepts, Data Structures, Collections Framework, Annotations, and Core Java basics.
It is designed for:
- 📚 Students learning Java programming
- 🧑💻 Beginners who want hands-on coding practice
- 🎯 Interview Preparation for coding rounds
- 👨🏫 Teachers/Trainers to share Java examples
This repository covers:
- Hello World Programs
- Variables, Data Types, and Operators
- Conditional Statements (if, else, switch)
- Loops (for, while, do-while, enhanced for loop)
- Arrays and Strings
- Exception Handling
- File Handling and I/O
- Classes and Objects
- Constructors and Destructors
- Inheritance (Single, Multiple via Interfaces, Multilevel, Hierarchical)
- Polymorphism (Compile-time and Runtime)
- Encapsulation
- Abstraction
- Interfaces and Abstract Classes
- Method Overloading & Overriding
- Arrays and 2D Arrays
- Linked Lists (Singly, Doubly, Circular)
- Stacks and Queues
- Priority Queue
- Binary Trees and Binary Search Trees (BST)
- Graphs (DFS, BFS)
- Sorting Algorithms (Bubble, Insertion, Selection, Quick, Merge)
- Searching Algorithms (Linear Search, Binary Search)
- List (ArrayList, LinkedList, Vector, Stack)
- Set (HashSet, LinkedHashSet, TreeSet)
- Map (HashMap, LinkedHashMap, TreeMap, Hashtable)
- Queue (PriorityQueue, Deque, ArrayDeque)
- Iterators and Enhanced For Loop
- @Override, @Deprecated, @SuppressWarnings
- Custom Annotations
- Reflection API
- Generics
- Multithreading Basics
- Synchronization