P19 - This keyword in Java | Core Java |

Описание к видео P19 - This keyword in Java | Core Java |

In this video, I have explained about "This keyword in Java".

this keyword in Java is a reference variable that refers to the current object of a method or a constructor. The main purpose of using this keyword in Java is to remove the confusion between class attributes and parameters that have the same names.

Following are various uses of 'this' keyword in Java: 👇
✔ It can be used to refer instance variables of the current class
✔ It can be used to invoke or initiate the current class constructor
✔ It can be passed as an argument in the method call
✔ It can be passed as an argument in the constructor call
✔ It can be used to return the current class instance

⭐ Summary ⭐
✔ this Keyword in Java is a reference variable that refers to the current object.
✔ One of the use of this keyword in Java is to refer current class instance variable
✔ It can be used to invoke or initiate current class constructor
✔ It can be passed as an argument in the method call
✔ this pointer in Java can be passed as an argument in the constructor call
✔ this operator in Java can be used to return the current class instance
✔ this in Java is a reference to the current object, whose method is being called upon.
✔ You can use "this" keyword to avoid naming conflicts in the method/constructor of your instance/object.

==============================================
▶️ Next Video Link: Will be updated once the video is uploaded
◀️ Previous Video Link:    • P18 - Constructors in Java | Core Java |  
↔️ Java for Absolute Beginners Playlist Link: https://bit.ly/3keRJGa

✴ Checkout my other playlists: https://bit.ly/3gLIAVL

☕ Buy me a coffee: https://bit.ly/33ljBWc

👑 Join my youtube channel to get access to perks:👇
   / @hyrtutorials  

==============================================
==============================================
Connect us @
🔗 Website - https://www.hyrtutorials.com
🔗 Telegram - https://t.me/hyrtutorials
🔗 Facebook -   / hyrtutorials  
🔗 LinkedIn -   / hyrtutorials  
🔗 Twitter -   / hyrtutorials  
🔗 Instagram -   / hyrtutorials  
==============================================
==============================================
🙏 Please Subscribe🔔 to start learning for FREE now, Also help your friends in learning the best by suggesting this channel.

#hyrtutorials #java #corejava

channel search:
Java Programming by Yadagiri Reddy, Java for absolute beginners, Yadagiri Reddy, Yadagiri Reddy H

Комментарии

Информация по комментариям в разработке