Introduction
- Java is a high-level, object-oriented programming language.
- Java follows the “Write Once, Run Anywhere” (WORA) principle, meaning Java programs can run on any device with a Java Virtual Machine (JVM).
Java and Object Oriented Programming
- Everything in Java revolves around objects and classes.
- Object-Oriented Programming (OOP) is a way of organizing code using objects.
- Objects are things that have properties (characteristics) and actions (what they can do).
- Classes are like blueprints for creating objects.
In simpler terms:
Imagine class to be the cookie cutter and the object to be the cookies we make from it.
Usefullness of OOP (Object Oriented Programming)
- Code is well Organised and improves Readability
- Can reuse code
- making many objects from one class