This repository included Java basic concepts like OOP, and basic Programming examples
Contain about -
1. Data Structures
1. Array
2. ArrayList
3. Map
4. Stack
2. Searching
1. Binary Search
2. Linear Search
3. Sorting
4. Numbers related problems
1. Swap Numbers
2. Prime Numbers -> 2, 3, 5, 7, 11, 13, 17, 19, 23
A prime number is a whole number greater than 1 whose only factors are 1 and itself
3. Fibonacci Numbers -> 0, 1, 1, 2, 3, 5, 8, 13
First two number count equal to 3rd number, so on
4. Armstrong -> 153 is a Armstrong if each number cubes number count equal to same number (1*3 + 5*3 + 3*3 = 153)
5. Second Highest Number In Array
5. Strings related problem
1. Find Duplicate Characters in String
1. using for loop and chatAt()
2. Find Number of Word Count in String
1. using HashMap
3. Palindrome <- if string and it's reverse string are equal, input string is a palindrome
4. Pangram String -> A pangram is a string that contains all the letters of the English alphabet. (26 characters)
5. Reverse String
1. using stringBuilder.reverse()
2. without using stringBuilder.reverse(), using StringBuilder class
3. using foo loop (reverse)
6. Trim
Technology Used: -
1. Core Java
2. Java 8 Features
Contain about -
1. Variables
2. Keywords
1. Final ->
2. Static ->
3. Access Modifiers
1. default
2. private
3. protected
4. public
4. Data Types
1. Primitive types - int, double, float, char
Value can't be null
2. Wrapper types (Object types) - Integer, Double
Can be value null
5. Data Structures
1. Array
2. List
3. LinkedList
4. Set
5. HashMap
6. Stack
7. Tree
6. Scanner
1. scanner.nextLine()
2. scanner.next()
3. scanner.nextInt()
7. OOP
1. Inheritance
2. Polymorphism
1. Method overloading
2. Method overriding
3. Abstraction
4. Encapsulation
8. Exception Handling
9. Thread
1. Implement thread
1. extending Thread class
2. by implementing Runnable interface
2. Producer Consumer Problem
3. Thread Problems
1. Concurrency issue
2. Thread interference/ Race condition -> use synchronization
3. Memory inconsistency issue -> use has before relationship (use thread.join())
4. Synchronization
10. Java Predefined Classes
1. String class
2. Collection class
11. Optional API
12. Stream API
Technology Used: -
1. Core Java
2. Java 8 Features