I was learning java for project requirement and this video saved my life to understand this in java it is weird but understood :) No one can escape this three languages in their life java, python and js
Iam here from JS and i know the function of this keyword but when i was a beginner it was a huge headache for me. But after this video I can clearly state that Navin reddy sir aka telusko is one of the best teacher ever. Genius, the way he explained about this keyword..
I watched many videos to understand how this keyword works, but none of them helped me. This video cleared all my doubts and questions. Thank you, sir, for this lecture!
Like me a person love details and how things works. I watched alot of tutorials about java and difficult topics like consturtor and this keyword,implicitly I understand it but I can't move without understanding initial way for things work. Your explaining with more fantastic details and different way, you are amazing . Thank you alot my teacher
00:02 Understanding the 'this' keyword in Java 01:14 In Java, the stack memory and heap memory are used for different purposes. 02:27 Local and instance variables with the same name in Java 03:43 Assigning a variable to itself in Java can lead to unexpected behavior. 04:55 In Java, 'this' refers to the current object instance. 06:04 Creating a new object may cause issues with assigning values. 07:19 Passing object references and differentiating between instance and local variables in Java 08:36 The 'this' keyword represents the current object in Java
THIS is the only time I have ever understood the THIS keyword. Thank you so much!! So does that mean that the This keyword is only used in NON-STATIC methods?
Can we say that constructor return this that is why we can use to access instance variable Like Human obj = new Human(); //Human(); It is constructor call
I think you are asking it for this keyword am I correct? if that is your question, Then whenever you create an object it cannot use the variable directly so we need to use methods to access it, when you create an object to modify those values using methods those object are the current object for the "this" keyword (this is not a correct answer this is what i understand so far)
No, I sometimes didn't get what he meant, :D I understood about this keyword, I know It refer to the current class object, we use in many ways, for builder pattern and for constructor to set the values so we define it and distigawise between local and global var, I don't care much much he don't explain the internal thing, so for refresh it is fine but not for the real knowledge. @@karots77
Can anyone one help me to understand ? I didn't understand at this "when we call age function we are passing the value ?👀 But why the heck we did we get zero, what's happening if we mention local and instance variable as same name ?
bro used entire 9 minutes just to define a single keyword , this shows he wants us to learn deeply 🙇🔥
while learning java i had realised that java is easier than java script bcoz in java script to explain the this keyword it will take easily an hour.
@@sai_teja_ig java and javascript are completely different so why compare?
I was learning java for project requirement and this video saved my life to understand this in java it is weird but understood :) No one can escape this three languages in their life java, python and js
Iam here from JS and i know the function of this keyword but when i was a beginner it was a huge headache for me. But after this video I can clearly state that Navin reddy sir aka telusko is one of the best teacher ever. Genius, the way he explained about this keyword..
Excellent way of teaching.
Pushes us to wrong path only to make us understand the right path. Thank you.
Amazing Explanation sir. Trying out different possibilities and explaining really nice
I watched many videos to understand how this keyword works, but none of them helped me. This video cleared all my doubts and questions. Thank you, sir, for this lecture!
Like me a person love details and how things works. I watched alot of tutorials about java and difficult topics like consturtor and this keyword,implicitly I understand it but I can't move without understanding initial way for things work. Your explaining with more fantastic details and different way, you are amazing . Thank you alot my teacher
The best Java teacher I have ever seen. Explanations, Examples are perfect
00:02 Understanding the 'this' keyword in Java
01:14 In Java, the stack memory and heap memory are used for different purposes.
02:27 Local and instance variables with the same name in Java
03:43 Assigning a variable to itself in Java can lead to unexpected behavior.
04:55 In Java, 'this' refers to the current object instance.
06:04 Creating a new object may cause issues with assigning values.
07:19 Passing object references and differentiating between instance and local variables in Java
08:36 The 'this' keyword represents the current object in Java
thanks brother ...
superb, i will never ever forget this keyword again, Thank you
This video shows your passion towards teaching, great work sir, I'm impressed 👏🏼
Your way of explaining things is fantastic. Thank you.
public void setAge(int age, Human obj)
{
obj.age = age;
}
also works instead of creation a new object
He said that too, you missed it ig
finally understood the true meaning of "this"
THIS is the only time I have ever understood the THIS keyword. Thank you so much!! So does that mean that the This keyword is only used in NON-STATIC methods?
Best explanation ever!
I can't thank you enough for these amazing tutorials sir.
Can we say that constructor return this that is why we can use to access instance variable
Like
Human obj = new Human();
//Human(); It is constructor call
bro why do you look so humble ❤️ thanks for the videos anna..!!
Wow great concept Thanks you so much❤
hi Navin , pls make a video on passing this keyword into methd arguements and passing this keyword as arguments in parameterised constructors
Thanks a ton sir, now the confusion got cleared for me for THIS keyword…. Your explanation is irreplaceable…🥰🥰🥰🥰🥰
Perfectly explained. Thank you.
brilliant explanation
best explanation
quality content fr🙂
Thankyou sir ❤ keep teaching us like this. More respect to you sir.
Thanks for the explaination Sir.
I literally clapped when this was used at last
Great way of explanation
you are excellent at java concepts
Grateful for this Playlist ...thank you!
Excellent explanation ,thanks😊
I really helped me in understanding this, thanks ❤
Happy teacher's day sir🎉🎉🎉
Hey Navin sir! Your fan from Nepal!
beautifully explained by going wrong ways.. no one can ever forget this
Learning by mistakes is the best way 😉
Amazing.
Java means Telusko ❤
What do you mean by the current object !?
I think you are asking it for this keyword am I correct? if that is your question, Then whenever you create an object it cannot use the variable directly so we need to use methods to access it, when you create an object to modify those values using methods those object are the current object for the "this" keyword (this is not a correct answer this is what i understand so far)
No, I sometimes didn't get what he meant, :D I understood about this keyword, I know It refer to the current class object, we use in many ways, for builder pattern and for constructor to set the values so we define it and distigawise between local and global var, I don't care much much he don't explain the internal thing, so for refresh it is fine but not for the real knowledge. @@karots77
Can anyone one help me to understand ?
I didn't understand at this "when we call age function we are passing the value ?👀 But why the heck we did we get zero, what's happening if we mention local and instance variable as same name ?
great teacher love you
one doubt, if we are not using this key word and just using two different variable names..will it work?
yeah it will work
Take simple example
Thanks Naveen 🔥 Big fan 💥
Lil bit confusion sir.
Super sir
line 30
obj.setAge(age: 30); // how did he type this inside the bracket--> age:
Inlay hints added by vs code (not a part of the code)
Not written by me.
@@Telusko oh, I'm learning java using Eclipse which is why I was unaware..thanks bro..
we cant call local variable outside of its local context
why to use same name for variables use different and all problems solved
varayyo vammo...entha baga cheppav babai.
thank god kadavul one ha padachan da 4 lakhs wasted on college
That's a lot of THIS😂
🙏❣
sir khud he kyu padh rahe ho