Core Java With OCJP/SCJP: OOPs(Object Oriented Programming) Part-12 || instance control flow

  Рет қаралды 170,117

Durga Software Solutions

Durga Software Solutions

Күн бұрын

Пікірлер: 96
@indhujayaraj7670
@indhujayaraj7670 3 жыл бұрын
I started his video to know what is oops but i got so much addicted to his video, he creates so much love for the subject. Hats off.. it's 2:30am here I'm still listening to his video. Amazing!
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Indhu Jayaraj. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@MANUCRIXZ
@MANUCRIXZ Жыл бұрын
bro can i follow these videos for doing DSA
@mdsufyankhan1029
@mdsufyankhan1029 11 ай бұрын
@@MANUCRIXZ No
@venkateshvullaganti4348
@venkateshvullaganti4348 5 жыл бұрын
This person makes java easy to learn and keeps interesting as we continue to watch his videos. Thanks a lot sir ....
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Venkatesh. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@rajatbhawsar2750
@rajatbhawsar2750 6 жыл бұрын
No one can teach java better than durga sir
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Rajat. Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@aditya_bhai25
@aditya_bhai25 5 жыл бұрын
Durga Sir is the GOD of JAVA.. ❤️❤️
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Aditya. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@MrDawit7
@MrDawit7 8 жыл бұрын
Simply Durga is the best Java instructor in youtube world!
@Iamnoone56
@Iamnoone56 4 жыл бұрын
You should write like Durga Sir isnt it? Be respectful
@remorajesh122
@remorajesh122 6 жыл бұрын
Nobody will teach..Java in this way... You made this Java like a simple 5th Telugu subject...thank u
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Rajesh. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@remorajesh122
@remorajesh122 6 жыл бұрын
Sir...I'm a big fan of you... You are helping so many students... May God bless you and your family members....
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Rajesh. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@rushikeshdesai3738
@rushikeshdesai3738 3 жыл бұрын
I'm mechanical student but after watching your videos feel like an IT engineer 😀... thank you so much sir....you are doing great job 🙌
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Rushikesh. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@pradeepkumar-lb1ym
@pradeepkumar-lb1ym 4 жыл бұрын
Great class by durga sir on instance members , variables, methods and blocks
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Pradeep. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@ranveervaghela7030
@ranveervaghela7030 Жыл бұрын
Everything is clearly explained :)
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions Жыл бұрын
Hello Ranveer. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@anilpatil5882
@anilpatil5882 7 жыл бұрын
sir,your core java videos are very useful...thanks a lot ,,,
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 7 жыл бұрын
Hi Anil. Thank you very much for your feedback
@arupanandabehera1527
@arupanandabehera1527 3 жыл бұрын
thanks a lot Durga sir
@राजनगोंगल
@राजनगोंगल Жыл бұрын
👍👍👍👍👍👍👍👍
@nehamehta6186
@nehamehta6186 8 жыл бұрын
thanks sir for valuable Knowledge
@sumitbadugu417
@sumitbadugu417 4 ай бұрын
Please make video on DSA
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 ай бұрын
Hello Sumit. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@najusg1762
@najusg1762 8 жыл бұрын
sir, you have mentioned order of instance control flow between parent and child classes during object creation in child class. 5 rules are mentioned for the flow. In 3rd point it is mentioned that execution parent construtor and in 5th point execution of child constructor. so my doubt is as compiler codes every constructor with super(); statement as its first statement therefore does parent constructor will again be called on execution of child constructor i.e 2 times execution once as per 3rd rule and once as per 5th rule but as per output parent constructor gets called only once. what are the reasons?? what is my misconception??
@anand_kanekal
@anand_kanekal 7 жыл бұрын
I guess, your question is valid.
@sandeepmachiraju1263
@sandeepmachiraju1263 7 жыл бұрын
class Parent { int i = 10; { System.out.println("IN PARENT INSTANCE::"+i); } Parent() {System.out.println("IN PARENT CONSTRUCTOR");} Parent(int x) {System.out.println("IN PARENT INTEGER CONSTRUCTOR::"+x);} } class Child extends Parent { int j = 10; { System.out.println("IN CHILD INSTANCE::"+j); } Child() { super(10); System.out.println("IN CHILD CONSTRUCTOR"); } public static void main(String[] args) { Child c = new Child(); } } Output: IN PARENT INSTANCE::10 IN PARENT CONSTRUCTOR integer::10 IN CHILD INSTANCE::10 IN CHILD CONSTRUCTOR
@jonassx100
@jonassx100 6 жыл бұрын
so what you want to say
@jonassx100
@jonassx100 6 жыл бұрын
i have sasme doubt
@MoytriBarman
@MoytriBarman 6 жыл бұрын
It may help, after creating the child() constructor the flow of program jumps from Child class to parent class. Then after going to parent class it --> 1. it identifies the instance variable and blocks inside parent class. 2. execution variable assignment and blocks execution. 3. execute parent constructor --> Then come back to child class and repeat this steps for Child class. To understand the flow - best to do debug your code. stackoverflow.com/questions/19561332/in-what-order-do-static-blocks-and-initialization-blocks-execute-when-using-inhe
@rajeshyadav-cw6vc
@rajeshyadav-cw6vc Жыл бұрын
Thank you sir🙏🙏🙏🙏
@mohanrammanikandan7939
@mohanrammanikandan7939 4 жыл бұрын
Thank you so much , sir. I have a doubt. I see no difference in execution order between static flow and instance flow. Both will have their parents' members get executed and then comes to child. What is the difference in the order ?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Mohanram. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@yajnaseneesahoo2079
@yajnaseneesahoo2079 6 жыл бұрын
Respect u sir
@AnishKumar-ie3ib
@AnishKumar-ie3ib 8 жыл бұрын
sir i have one doubt when child constructor will be executed than super() will be added by compiler by default if we are not writing this or super than in this parent ,child instance control block flow why parent constructor is not executed again when chid class constructor is executed. can anyone tell me?
@jonassx100
@jonassx100 6 жыл бұрын
i have the same doubt , did you get answer
@dreamcatcher9712
@dreamcatcher9712 5 жыл бұрын
I too have same doubt 😅
@shankars4281
@shankars4281 4 жыл бұрын
When we create object of child, childs constructor is called. If child constructor doesn't have super() as firsts line, compiler inserts it and this leads to loading of parent class. Then, in parent class, static block, variables are executed followed by parent constructor. So, parent constructor executed only once.
@Iamnoone56
@Iamnoone56 4 жыл бұрын
Sir is there any difference between these oops video and that 10 hour video of oops uploaded in the same playlist here...does it is about new java version or content is same??
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Suman. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@balla4004
@balla4004 4 жыл бұрын
Bro can u please say Is there any difference between those oops video's and that 10 hours video?
@Iamnoone56
@Iamnoone56 4 жыл бұрын
@@balla4004 no bro no diff this is latest but i will recommend you to go with older one
@balla4004
@balla4004 4 жыл бұрын
@@Iamnoone56 thank you! Did you watched entire series'
@Iamnoone56
@Iamnoone56 4 жыл бұрын
@@balla4004 ya all 203 videos 😅
@indrajitpatil4864
@indrajitpatil4864 4 жыл бұрын
Sir, Can we call non-static method in static block directly ?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Indrajit. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@vkj5742
@vkj5742 4 жыл бұрын
SIR, why is it necessary to create object in parent class, because by default every instance block is also available to the child?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Vaishnavi. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@heavenlyway5824
@heavenlyway5824 2 жыл бұрын
What is meant by at the time of class loading or class loading
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
Hello Friend. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@AbhishekKumar-su2du
@AbhishekKumar-su2du 5 жыл бұрын
In the video, it is mentioned that compiling the parent source file generates two class files. I think this will only happen when we compile the child source file. Please confirm.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Abhishek. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@bookswithpriya
@bookswithpriya 4 жыл бұрын
In only one source file both child and parent code is there . We can give any name to. Java file. We will get .Class for every class in that . java file
@jonassx100
@jonassx100 6 жыл бұрын
At last when child constructor gets executed , wouldnt it call parent class constructor as super() is added by the compiler
@shikharchaurasia1384
@shikharchaurasia1384 4 жыл бұрын
no it has already called the parent constructor in the beginning
@payelchowdhury5034
@payelchowdhury5034 5 жыл бұрын
what is about the parent class main method execution??
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Payel. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@shikharchaurasia1384
@shikharchaurasia1384 4 жыл бұрын
parent class main method will only be executed if we call parent class
@swathib7380
@swathib7380 8 жыл бұрын
sir, one doubt ! if static control flow is executed first, then in instance control flow the static main method should execute first why the instance blocks and constructor executed then the static? please clarify
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 8 жыл бұрын
Hi swathi B can u access kzbin.info/www/bejne/p2XLk3SabMh7q7M&lc=z12fvzajpkzujd3ux23usfujbsqnsbl0p
@ramcharan-vq9kx
@ramcharan-vq9kx 8 жыл бұрын
hello swathi, sorry to say this.....your question is absolutely wrong... please watch the video as many times as you can... then you will get clear idea... my question is --------- how can a static main method is executed in instance control flow they are two different flows.. so, don't mix them. you said wrong : " first instance blocks and constructor executed and then static......." then right is : "first static flow starts.... then instance flow starts after completing static flow and when we create an instance of a class(i.e., object) only. see my next comment for both control flows...
@ramcharan-vq9kx
@ramcharan-vq9kx 8 жыл бұрын
first static control flow starts ...... 1. there is only on static block i.e., main method . so , starts its execution..... and static flow completes. 2. static flow completes because execution of static main method is the last step of static flow... 3. now in main method there is an object create right......i.e., the object calls to the constructor... 4. now instance flow starts.... but before calling the constructor..... 5. instance flow is.... a)identification of instance members from top to bottom b)execution of instance variable assignments and instance blocks c) then execution of constructor..... so, after execution of constructor ... the instance flow completes........ ============================================================ then if any statements present in the main method will be executed...... and here we completed the program......
@ramcharan-vq9kx
@ramcharan-vq9kx 8 жыл бұрын
In facebook i have a page "JAVA and Android" you can post any doubt related to these beautiful technologies........... SURELY, we will answer you.... please like ----->>>>> facebook.com/java.android.forum =============== THANK YOU ===============
@jonassx100
@jonassx100 6 жыл бұрын
At last when child constructor gets executed , wouldnt it call parent class constructor again as super() is added by the compiler
@fazilzeynalov1098
@fazilzeynalov1098 3 жыл бұрын
share lessons about java.swing library please
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Fazil. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@surajbalore888
@surajbalore888 7 жыл бұрын
sir, what will be output if we only execute parent class in your above video...(instance control flow)
@devwithyash
@devwithyash 4 жыл бұрын
0 parent instance block parent constructor parent main
@KeshavSharma-in4hk
@KeshavSharma-in4hk 4 ай бұрын
Well I have a doubt how can be instance methods be counted as Instance block ... Instance blocks are only executed when they are called IDK will the team will look at it So if anyone knows please tell me according to chatgpt instamce methods are not part of instance block
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 ай бұрын
Hello Friend. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@lovefrommars7468
@lovefrommars7468 4 жыл бұрын
What if there r multiple constructors in both parent and child class
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Friend. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@fazilzeynalov1098
@fazilzeynalov1098 3 жыл бұрын
constructor is called whichever you use while creating the object
@Yashkumar-m05
@Yashkumar-m05 3 ай бұрын
What if we are creating parent object in child class ?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 ай бұрын
Hello Yash. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@ramcharan-vq9kx
@ramcharan-vq9kx 8 жыл бұрын
=========================== THANK YOU DURGA SIR........ YOU ARE MY @@@@@@ JAVA GOD@@@@@@ ===============================================
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 8 жыл бұрын
thank you ram charan
@atoz4055
@atoz4055 8 ай бұрын
62 videos completed 😅
@sureshkumarprajapat7470
@sureshkumarprajapat7470 8 жыл бұрын
sir can u explain control flow to this code class par{ int i=15; int k=44; public static void main(String[] args) { System.out.println("its p main"); } { m1(); System.out.println("first in p"); } par(int y){ this.k=y; System.out.println(y+"its parent constructar"); System.out.println("its parent constructar"); } void m1() { System.out.println(i); System.out.println("its p private m1 "); } void m2(){ System.out.println("its p m2"); } int j=22; } class chi extends par { int i=5; public static void main(String[] args) { chi c=new chi(999); System.out.println(c.k); System.out.println("its c main"); } { m1(); System.out.println(k); System.out.println("first in c"); } chi(int x){ super(x); System.out.println("its child constructar"); } void m1() { System.out.println("its c private m1 "); } void m2(){ System.out.println("its c m2"); } int j=24; }
Java Tutorials || Java OOPS  || Java Encapsulation || by Durga Sir
54:07
Durga Software Solutions
Рет қаралды 57 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Core Java with OCJP/SCJP: Exception Handling Part-6 || throws keyword
1:39:31
Durga Software Solutions
Рет қаралды 221 М.
Java Tutorials || Java OOPS  || Java Inheritance || by Durga Sir
1:16:42
Durga Software Solutions
Рет қаралды 106 М.
Java Tutorials || Java OOPS  || 3 Mantras of Object Type Casting || by durga sir
24:27
OOPS CONCEPTS - JAVA PROGRAMMING
20:24
Sundeep Saradhi Kanthety
Рет қаралды 2 МЛН
Core Java with OCJP/SCJP: Multi Threading Part-2 || The ways of defining a Thread Part-1
1:44:56
Introduction to SQLAlchemy
2:48:49
Next Day Video
Рет қаралды 168 М.
CompTIA Network+ Certification Video Course
3:46:51
PowerCert Animated Videos
Рет қаралды 8 МЛН
Constructors in java | default constructor | Constructor Overloading
2:27:05
Durga Software Solutions
Рет қаралды 218 М.
CppCon 2014: Mike Acton "Data-Oriented Design and C++"
1:27:46