This page contains code examples related with object oriented programming concepts, such as objects, classes, inheritance, interfaces, and packages.
- Overriding vs. overloading
- Why field can not be overridden?
- Inheritance vs. Composition
- Access Level: public, protected, private
- 4 types of Inner Classes
- What is inner interface?
- What is instance initializer?
- When to use a private constructor?
- Constructors of sub and super classes
- OCP Notes (1)
- OCP Notes (2)
- OCP Notes (3)
- default vs. protected
There are more Java API Examples from programcreek.