हिंदी

State any one purpose of using the keyword this in Java programming. - Computer Science (Theory)

Advertisements
Advertisements

प्रश्न

State any one purpose of using the keyword this in Java programming.

संक्षेप में उत्तर

उत्तर

  1. In an instance method or constructor, this is a reference to the current object.
  2. The most common reason for utilising this term is when a field is shadowed by a method or constructor argument.
shaalaa.com
Object as an Instance of a Class
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2022-2023 (March) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×