3)What is use this keyword?
ans)When a method contains a instance variable and local variable then local variable hides instance variable.To differentiate between the instance and local variable this keyword is used.
It is also used to invoke the constructor of its own class.

0 Comments:
Post a Comment
<< Home