Java Tutorial # 13 | Constructors and Object creation in Java | JAVA9S.com

Опубликовано: 14 Март 2026
на канале: java9s
46,668
181

Download the PPT and example code from
This tutorial explains about the Java constructors and how the constructors help to initialize the Java objects. I have explained about the constructors with arguments, default constructor and have mentioned about the rules that need to be remembered to program constructors. These rules are useful for the SCJP certification or OCJP certification exam. I have also explained about the usage of super() and this() and demonstrated how they can be used to invoke the super class constructors and their own constructors.
Finally i have explained about the Java references about how a super class type can refer a subclass type of object