Mastering OOP & Java Basics
• Simplified Concepts with Technologia Touch
Introduction to Programming
Languages
• • Programming languages are used to give
instructions to computers.
• • They help convert human logic into
computer-readable code.
• • Example: Python, Java, C++
Generations of Programming
Languages
• 1st Gen: Machine Language (Binary)
• 2nd Gen: Assembly Language (Mnemonics)
• 3rd Gen: High-Level Languages (C, Java)
• 4th Gen: User-Friendly (SQL, Python)
• 5th Gen: AI-Oriented (Prolog, Mercury)
What is OOP?
• • OOP stands for Object-Oriented
Programming.
• • Focuses more on 'objects' than on
'functions'.
• • Helps keep code organized, reusable, and
secure.
Features of OOP
• • Object-centric approach
• • Code reusability
• • Data hiding (Encapsulation)
• • Inheritance and Polymorphism
Core Concepts of OOP
• • Object – A real-world entity
• • Class – Blueprint for objects
• • Encapsulation – Bundling data and functions
• • Abstraction – Showing essential info only
• • Inheritance – Getting features from another
class
• • Polymorphism – One function, many forms
Real-World Example: Car Class
• Class: Car
• Objects: Red Honda, Blue Toyota
• Attributes: color, model
• Methods: drive(), stop()
Java Development Kit (JDK)
• • JDK is used to write, compile, and run Java
programs.
• • Includes Compiler, JVM, and Tools like
Javadoc.
• • Essential for Java Development.
Java Packages
• • Group of related classes in Java.
• • Examples: java.lang, java.io, java.util
• • Use 'import' to include them in code.
Bytecode & JVM
• • Java code is compiled into Bytecode.
• • JVM runs this bytecode on any machine.
• • Enables 'Write Once, Run Anywhere'
Java Program Execution Flow
• 1. Write Code (.java file)
• 2. Compile with javac → (.class file)
• 3. Run with JVM → Program Output
Summary
• • Programming has evolved over 5
generations.
• • OOP makes programs reusable and secure.
• • Java is powerful because of Bytecode & JVM.
Thank You!
• Code Smart, Code Future!
• Explore more with Technologia.