Categories
Core JAVA

Uses Of this keyword in java

Working with “this” keyword:- This keyword in java is a keyword which always refers to a current class object.T he difference between ‘new’ and ‘this’ is new is responsible to call a  constructor and create a new object. Whereas “this” is responsible to call the constructor without allocating memory. this keyword can be very useful in the handling of […]