One. Introduction to Java
Two. Object oriented programming language
Java Runtime Environment:
Implementation of a Java Applications
Example Two: Factorial of a Number (Using Loop)
Example Four: Method Usage (Function Call)
Abstraction, Encapsulation and Composition in Java
Advantages of Java Abstraction
Example One: Bank Account (Abstract Data Type Example)
Example Two: Vehicle Abstraction
Example Two: Employee Abstraction
Advantages of Encapsulation
Disadvantages of Encapsulation
Example: Encapsulation with Private Data (Error Demonstration)
UE23CS352B: OBJECT ORIENTED ANALYSIS AND DESIGN
Correct Way (Using Encapsulation)
Example: Composition (Has-a Relationship)
Benefits of using Composition:
Class, Attributes, Methods and Objects
Example of usage of an object in Java:
Explanation of the Example
Java Object: Key Characteristics
Class versus Object in Java
Explanation of the Example
Why Access Modifiers are Important?
Explanation of the Example
Uses of interfaces in Java:
Difference between class and interfaces:
Five. Can we specify an interface method as protected?
Seven. Can a class implement more than one interface?
Eight. Can a class override only some methods of an interface?
Constructors, Destructors and Garbage Collector
Three types of constructors:
Parameterized Constructor
Parameter Passing - Value Types and Reference Types
Two. Actual Parameter (Argument)
Pass by Value (Value Types)
Pass by Reference (Reference Types / Alias)
Understanding Object, Reference, and Variable
What happens step-by-step?
Other Names of Method Overloading
Rules for Method Overloading
What is Method Signature?
What is NOT Method Overloading?
Benefits of using Method Overloading
// Overloading by changing number of parameters
// Overloading by changing data type of parameters
// Overloading by changing order of parameters
// Static method overloading
// Constructor Overloading
public static void main(String[] args) {
Class Attributes and Methods
Types of Attributes (Variables) in Java
The static keyword can be used for:
Class variables (or static fields)
Static Method and Attribute: Example
Static vs Instance Method
Example of Static Nested Class
Acquiring Properties (Data and Methods)
Superclass (Parent / Base Class)
Subclass (Child / Derived Class)
Example: Parent Class (Superclass)
Types of Inheritance in Java:
One class inherits another class.
Three. Hierarchical Inheritance
Usage of Java Method Overriding
Rules for Java Method Overriding
Creation and Usage of Abstract Class in Java
Example of Abstract Class
Single Rooted Hierarchy and Object class
. Root of Class Hierarchy
Some Methods of Object class :
Overriding equals() Method
Overriding toString() Method
Primary Advantages of Collections Framework
Java Collections Framework Hierarchy Diagram
Two-Dimensional Array (two D)
Declaration of one D Array
Instantiation (Memory Allocation):
Declaration of two D Array
Arrays Class (java.util.Arrays)
Syntax (Class Declaration)
Implementation Classes of List
Few Common Methods of List
Example: Programming Demo
Creating a Generic ArrayList
Primitive Types Not Allowed
Example: Programming Demo
Hierarchy of ArrayList in Java Collections Framework
Hierarchy of List Interface with Vector and Stack in Java Collections Framework
Object Oriented Development Process
Object Oriented Methodology
This approach asks the analyst to determine:
This approach emphasizes how to systematically go about developing a system or application.
This approach asks the analyst to determine:
Stages of Object Oriented Methodology
Example: Online Movie Ticket Booking System
Qualities of a Good Class Library
Patterns can be applied at different stages of development, including:
Software Architecture Patterns define the overall structure of a system. Examples:
Purpose of Architectural Patterns
Problems Addressed by Architectural Patterns
Common Architectural Patterns:
MVC Architecture in Java:
Flow of User Request in MVC (Servlet-Based Application)
Simple Code Example (MVC using Servlet)