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

preview_player
Показать описание
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
Рекомендации по теме
Комментарии
Автор

Thank you for your time and expertise!  With three video's, you've cleared up many misunderstandings that have been impeding my learning!  Your great and thank you! 

jeffbishop
Автор

This is one of the best videos I have ever watched... Great Job!!! :)

AfsarJan
Автор

i am really feeling. that how to becoming a adorable to someone teaching..well done.. Mr.Reddy

narendarreddyb
Автор

Hello, I am new to Java and these videos are helping me. Thank

deepakgowda
Автор

very well explained...all concepts in depth

Aaryaa
Автор

thank u very much .Nice videos .Please upload more videos for SCJP

maniknathful
Автор

I am gaining nice points ! many thanks .

habtamusium
Автор

Nice Videos :) Thankyou for your work :)

mhrsolanki
Автор

well described.. thank u ver much for  sharing your knowledge with us..

singhsupriya
Автор

Sir You are best there is no need to prove anything!!! Can you please upload Collections and String topics also.

shoebkazi
Автор

thanks for the video.... it's great !!!

amitsahu
Автор

Also in java, the instance variables are initialized when the object of its class is created by calling its default constructor, the functionality of default constructor to initialize the default values to instance variables.

dellikbabu
Автор

Hi, the variables speed and maxSpeed are of type int and the default values for int type is 0. only for the Object references, when we do not assign an object, the default value comes to null. Please refer to my video 'Java data types.

javas
Автор

You are good, no doubt bout it, are from USA?

TheMrjitusolanki
Автор

sir u have told that whether we create constructor or nt default constructor is executed then hw can the 3rd statement at the biging is wrong it comes under default constructor ??

sandeepgajula
Автор

What will happen when I code "this();" and their is no constructor defined?

AjayGangisetti
Автор

Sure Pankaj... Will try my best but i was surprised that 10000 viewers were able to understand my english..

javas
Автор

U just listen urself.. U will get to know..

pankajaggarwal
Автор

Stop complaining man...he is atleast sharing knowledge and not asking you to pay for it.

rafzain
Автор

I think Pankaj You'r comments are irritating!!!

shoebkazi