Object-Oriented Programming Tutorials
Understand OOP concepts like classes, objects, inheritance, polymorphism, and encapsulation.
Classes and Objects in Java - OOP Fundamentals
Learn about classes and objects in Java. Understand OOP fundamentals with practical examples and best practices.
Constructors in Java - Types & Examples
Learn about constructors in Java. Default constructor, parameterized constructor, and copy constructor explained.
This Keyword in Java - Current Class Instance
Understand the "this" keyword in Java. Refer to the current class instance variable, method, or constructor.
Inheritance in Java - Extends Keyword
Learn about inheritance in Java. Single, Multilevel, and Hierarchical inheritance explained with "extends" keyword.
Super Keyword in Java - Accessing Parent Class
How to use the "super" keyword in Java to access inherited members or invoke parent class constructors.
Method Overloading in Java - Compile-time Polymorphism
Learn about method overloading. How to create multiple methods with the same name but different parameters.
Method Overriding in Java - Runtime Polymorphism
Understand method overriding. How a subclass allows to provide specific implementation of a method executing in superclass.
Polymorphism in Java - Types & Examples
Master polymorphism in Java. Learn about compile-time (overloading) and runtime (overriding) polymorphism.
Encapsulation in Java - Data Hiding
Learn about encapsulation in Java. How to wrap code and data together into a single unit using private fields and public methods.
Abstraction in Java - Hiding Implementation Details
Understand abstraction in Java. Learn how to hide internal details and show only functionality using abstract classes and interfaces.
Interfaces in Java - Multiple Inheritance
Learn about interfaces in Java. How to achieve multiple inheritance and loose coupling using interface keyword.
Abstract Classes in Java
Detailed guide on abstract classes. When to use abstract classes vs interfaces in Java.
Final Keyword in Java - Variables, Methods & Classes
Master the final keyword. Learn how to create constants, prevent method overriding, and prevent inheritance.
Static Keyword in Java - Memory Management
Understand the static keyword in Java. Static variables, methods, blocks, and nested classes explained.
Access Modifiers in Java - Public, Private, Protected
Complete guide to access modifiers in Java. Understand the scope and visibility of classes, variables, and methods.
Explore Other Categories
Practice What You Learn
Try out the code examples in our free online Java compiler.
Open Java Compiler