newbies can be confused at 6:11, usually when you say 'instance variables', it indicates the variables in the instance, such as 'breed', 'age', 'color' in the example. To be precise, those non-static fields are 'instance variables', and static fields are 'class variables'.
Finally, I found videos that explain the concept very well ! Thanks a lot !! I have seen so many Java tutorial videos but my understanding is so much better after watching your videos. The good visual explanation is what sets your videos apart from the others . It is sooo easy to get the concepts by looking at the visuals !!!
You explains it so well....The concepts that I found hard to understand are explained so well in your tutorial that now I feel its so simple...Thanks a lot...
"instance" is a word used for dungeons in games, which are accessed through a portal and takes you to another locations. It means a method which is accessible somewhere else
Hi, congrats to your video. I think that you can makeit better after minute 10:38 when you say that dog2 and dog3 has the same age. It is incorrect cause you before , correctly says that they are simply pointers to the object D2. It is much better to not speak about dog2 and dog3 has the same age, but this two different pointers cause they point to th same object , every modification of the variables of the object D2 will be visible for both pointers. I think that all this confusion comes when in java they teach to us : We create and object using Dog dog2 = new Dog(); without explainis clearly every piece of this point. 1 ) it is an expression. ( expressions can have different forms ) 2 ) The evaluation of this expression start from right to left to be excetuted. 3 ) new Dog() creates a new object in HEAP (our object D2 and our object has a memory address ) 4 ) Dog dog2 define a object reference. 5 ) the simbol = assign the memory address of the object to our object reference. [ if we try to do a System.out.println(dog2) we will have the memory address stamped. ] 6 ) if we wont to access to every variable of our object ( D2 ) we can do it simply calling the object reference and the name of the variable that we want to access. example dog2.age So , as last i want just to remember that dog2 and dog3 are not our object but just our OBJECT REFERENCE. Object is all the structure and Object Reference is simply the address memory of our object.
@@amlam5685 watch this video: ruclips.net/video/UcPuWY0wn3w/видео.html When you program sometimes you are costraint to to have two or more object references to the same object in memory. You should always pay attention when you modify values cause if you modify a variable value of the object from one of the refecence object it will be visible for all the reference objects that point to this object. One case is when you need to have access ( just to read the data of the same object in different point of the program.
Happious code doesn't come aroudn as objects without space : but in time with 0 functions 0^0 in object in a line can resend information with emails then a computer gets jerked a system running a across a main waiting for a main signal 0 : 1 ) .
How is the memory (stack and heap) look like if I have array of object? Example: Person [] people = new Person[10]; people[0] = new Person(); people[1] = new Person(); where Person class has 2 instance variables name and age?
Objects are stored in heap by default? Is their any way to store object in somewhere else?If object are stored,they will consume memory, so how to clean that memory?
+Rushabh Oswal well you don't have to clean memory. Once the reference variable pointing to that object becomes null then the object becomes useless.. So here comes the garbage collector that automatically cleans up the objects and increase the heap memory back.
+Rushabh Oswal objects are always stored in heap memory. There is one more memory area known as stack memory where the primitive data type and reference variables are stored. I will make a separate video on heap memory, stack memory and garbage collector.
had a bunch of "oh damn ok that's easier than I thought" moments. Thanks man
All day i was studying these concepts and finally got the perfect video on it. Thanks a lot!
newbies can be confused at 6:11, usually when you say 'instance variables', it indicates the variables in the instance, such as 'breed', 'age', 'color' in the example. To be precise, those non-static fields are 'instance variables', and static fields are 'class variables'.
I agree with you.
The best straightforward and simple java course I have ever seen, Thank you.
Finally, I found videos that explain the concept very well ! Thanks a lot !! I have seen so many Java tutorial videos but my understanding is so much better after watching your videos. The good visual explanation is what sets your videos apart from the others . It is sooo easy to get the concepts by looking at the visuals !!!
Wow, I felt exactly the same thing. I searched a lot of video just to get this kind of explanation.
very helpful tutorial, keep it up sir 👍👍👍👍🙂🙂🙂🙂
thanks a lot
great , the best and clearest video ever .
You explains it so well....The concepts that I found hard to understand are explained so well in your tutorial that now I feel its so simple...Thanks a lot...
Perfectly explained.. You're amazing sir.
"instance" is a word used for dungeons in games, which are accessed through a portal and takes you to another locations. It means a method which is accessible somewhere else
wrong
Thankyou ... Beautifully explained
The best explanations ever! It was very helpful. Thank you.
Thanks for your teaching method
Jai ho Aapki😃😃😃
You have cleared all my doubts, thanks for the explanation
Your tutorials are awesome. Keep it up
Wow, thank you so much. Very clear explanation.
This is super helpful. Thank you so much!
amazing, thank you!
Underrated channel in RUclips
Your video are awesome😍😍😍😍😍
You are the best, well done.
Hi,
congrats to your video.
I think that you can makeit better after minute 10:38 when you say that dog2 and dog3 has the same age.
It is incorrect cause you before , correctly says that they are simply pointers to the object D2.
It is much better to not speak about dog2 and dog3 has the same age, but this two different pointers cause they point to th same object , every modification of the variables of the object D2 will be visible for both pointers.
I think that all this confusion comes when in java they teach to us :
We create and object using Dog dog2 = new Dog(); without explainis clearly every piece of this point.
1 ) it is an expression. ( expressions can have different forms )
2 ) The evaluation of this expression start from right to left to be excetuted.
3 ) new Dog() creates a new object in HEAP (our object D2 and our object has a memory address )
4 ) Dog dog2 define a object reference.
5 ) the simbol = assign the memory address of the object to our object reference.
[ if we try to do a System.out.println(dog2) we will have the memory address stamped. ]
6 ) if we wont to access to every variable of our object ( D2 ) we can do it simply calling the object reference and the name of the variable that we want to access.
example dog2.age
So , as last i want just to remember that dog2 and dog3 are not our object but just our OBJECT REFERENCE.
Object is all the structure and Object Reference is simply the address memory of our object.
hi Altin Uku
what is the point of having these 2 object references dog2 and dog 3 ? am new on programmig
@@amlam5685 watch this video: ruclips.net/video/UcPuWY0wn3w/видео.html
When you program sometimes you are costraint to to have two or more object references to the same object in memory. You should always pay attention when you modify values cause if you modify a variable value of the object from one of the refecence object it will be visible for all the reference objects that point to this object.
One case is when you need to have access ( just to read the data of the same object in different point of the program.
Amazing explanation
Nice video ! Thanks a lot !
Good explanation
Very nice video bro..good job..my concept got cleared..
great explanation tnxxxxxx
Thank you
Thanks a lot
good lesson sir
WAS REALLY GOOD VIDEO !!
NICEE, THANKYOU
Very nicely explained...subscribed
Thanks
Happious code doesn't come aroudn as objects without space : but in time with 0 functions 0^0 in object in a line can resend information with emails then a computer gets jerked a system running a across a main waiting for a main signal 0 : 1 ) .
How is the memory (stack and heap) look like if I have array of object?
Example: Person [] people = new Person[10];
people[0] = new Person();
people[1] = new Person();
where Person class has 2 instance variables name and age?
bark() and run() will throw error as the "local variables" are not initialized.
very good explanation.
Thank you.
Thank uuuuu....so much
perfect explanation!
Thanks
Keep going like this..
sir I have prblm that i understood your concept very well but i DON't KNOW HOW TO PRACTICE .PLEASE HELP ME SIR ..
Objects are stored in heap by default? Is their any way to store object in somewhere else?If object are stored,they will consume memory, so how to clean that memory?
+Rushabh Oswal well you don't have to clean memory. Once the reference variable pointing to that object becomes null then the object becomes useless.. So here comes the garbage collector that automatically cleans up the objects and increase the heap memory back.
Smartherd , how to store object into some other location?
+Rushabh Oswal objects are always stored in heap memory. There is one more memory area known as stack memory where the primitive data type and reference variables are stored. I will make a separate video on heap memory, stack memory and garbage collector.
You are following head first java book I think so !!!
He is speaking in English and why i feel like he is teaching in hindi.
Because u r able to understand my English 🤣
@@smartherd Sir your explanations are directly getting into my head.Thank you Sir.
What is requirement of Dummy Variable???
Dog dog4;