Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 

Repository files navigation

β˜• Core Java Concepts πŸ“Œ Overview

This repository contains fundamental and advanced Core Java concepts with examples. It is designed for beginners, students, and interview preparation.

Core Java forms the foundation of Java programming and covers OOP principles, collections, exception handling, multithreading, and more.

πŸ—οΈ Topics Covered πŸ”Ή 1. Basics of Java

History & Features of Java

JVM, JRE, JDK

Data Types

Variables

Operators

Control Statements (if, switch, loops)

πŸ”Ή 2. Object-Oriented Programming (OOP)

Class & Object

Constructors

Method Overloading

Method Overriding

Encapsulation

Inheritance

Polymorphism

Abstraction

Interfaces

πŸ”Ή 3. Strings

String Class

String vs StringBuilder vs StringBuffer

String Methods

Immutable Nature of Strings

πŸ”Ή 4. Arrays

Single Dimensional Arrays

Multi-Dimensional Arrays

Array Operations

πŸ”Ή 5. Exception Handling

try-catch block

finally block

throw & throws

Custom Exceptions

πŸ”Ή 6. Collections Framework

List Interface

ArrayList

LinkedList

Vector

Set Interface

HashSet

LinkedHashSet

TreeSet

Map Interface

HashMap

LinkedHashMap

TreeMap

Iterator & Comparable

πŸ”Ή 7. Multithreading

Thread Class

Runnable Interface

Thread Lifecycle

Synchronization

πŸ”Ή 8. File Handling

File Class

FileReader & FileWriter

BufferedReader & BufferedWriter

πŸ”Ή 9. Java 8 Features

Lambda Expressions

Functional Interfaces

Stream API

Method References

Optional Class

🧠 Core Java Architecture

Java follows Write Once, Run Anywhere (WORA) principle.

Flow:

.java file β†’ Compiler β†’ .class file (Bytecode) β†’ JVM β†’ Machine Code

Components:

JDK (Java Development Kit) β†’ Development tools

JRE (Java Runtime Environment) β†’ Runtime environment

JVM (Java Virtual Machine) β†’ Executes bytecode

πŸ› οΈ Requirements

JDK 8 or above

IDE (Eclipse / IntelliJ / VS Code)

Command Line (optional)

▢️ How to Run Using Command Prompt javac FileName.java java FileName Using IDE

Import project

Run the main method

View output in console

πŸ“‚ Project Structure CoreJava/ β”‚ β”œβ”€β”€ basics/ β”œβ”€β”€ oop/ β”œβ”€β”€ collections/ β”œβ”€β”€ exception/ β”œβ”€β”€ multithreading/ β”œβ”€β”€ filehandling/ └── java8/ 🎯 Purpose

Strengthen Java fundamentals

Prepare for technical interviews

Build strong programming base

Understand backend development concepts

πŸš€ Future Enhancements

Add JDBC

Add Design Patterns

Add Mini Projects

Add Unit Testing

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages