Photo by Luca Bravo on Unsplash

IMPORTANT CONCEPTS IN JAVA SERIES

Java Concepts — Object Oriented Programming I

Explanations, Examples, Codes and Diagrams

Suryakant Bharti
Android Saga
Published in
3 min readApr 4, 2022

--

This series on Must Know Java Concepts will introduce all the important Java Concepts.

  1. Java Features & JDK
  2. Fundamentals & OOPS ← we are here
  3. Generics
  4. Collections
  5. Exception Handling
  6. Files & Input-Output
  7. Serialization
  8. Multithreading
  9. Synchronization
  10. Networking
  11. All 50 Java Keywords
Image created by Suryakant Bharti

Fundamentals & Object Oriented Programming

Object-Oriented Programming is a methodology or paradigm to design a program using classes and objects. It simplifies the software development and maintenance. Main Concepts — Inheritance, Polymorphism, Abstraction, Encapsulation.

Data Types in Java

NOTE : UTF-8 is the most popular Unicode character encoding with 90% websites using it.

Data Type Promotion in Java :

Image created by Suryakant Bharti

Wrapper Classes in Java

Operators in Java

Java Naming Conventions :

Object vs Class

Constructors vs Methods

Types of Inheritance (Supported through Class)

Image created by Suryakant Bharti

Types of Inheritance (Supported through Interface only)

Image created by Suryakant Bharti

Association vs Aggregation vs Composition

Image created by Suryakant Bharti

Aggregation vs Composition

NOTE : The “final” keyword is used in Composition to ensure the child variable is initialized.

Polymorphism — Method Overloading vs Method Overriding

Abstract Class vs Interface

Java Access Modifiers

Abstraction vs Encapsulation

Methods of Object Class

The Object class is the parent class of all the classes in Java by default.

Congrats! 🎉 We are one step closer to “becoming a Java Expert” now!!

Image created by Suryakant Bharti

This article is supposed to serve as a beginner’s guide for OOPS.

Give a clap if you liked the article or a leave a comment for any suggestion/discussion/dispute. Thank you!

--

--

Suryakant Bharti
Android Saga

Android Developer (Kotlin, Java, OOPS, Data Structures, Algorithms, Design Patterns) github.com/Suryakant-Bharti