Skip to content

AasthaNandekar/basic-java

Repository files navigation

☕ Basic Java

A collection of Java programs I wrote while learning the fundamentals of Java programming. This repo covers everything from basic syntax to object-oriented programming concepts.


📚 Topics Covered

  • Basics — variables, data types, operators, input/output
  • Control Flow — if-else, switch, ternary operator
  • Loops — for, while, do-while, nested loops
  • Arrays — 1D arrays, 2D arrays, array operations
  • Strings — string methods, manipulation, palindrome, reverse
  • Methods — user-defined methods, recursion
  • OOP Concepts — classes, objects, constructors, inheritance, polymorphism, encapsulation, abstraction
  • Exception Handling — try-catch, finally
  • Collections — ArrayList, HashMap (basics)

🛠️ Tech Stack

Java


▶️ How to Run

1. Clone the repo

git clone https://github.com/aasthanandekar/basic-java.git
cd basic-java

2. Compile any file

javac HelloWorld.java

3. Run it

java HelloWorld

🎯 What I Learned

  • How Java is structured — classes, main method, and compilation
  • Difference between primitive and reference data types
  • Writing clean loops and conditions
  • Core OOP concepts — inheritance, polymorphism, encapsulation
  • How exceptions work and how to handle errors gracefully
  • Thinking in an object-oriented way

👩‍💻 Author

Aastha Nitin Nandekar
LinkedIn GitHub Email


About

A collection of beginner -friendly Java programs covering core programming concepts

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages