Compiler code

When we write a program in Java, we know that it gets converted to byte code, but before that compiler adds some intelligent code into our code. Lets see what it can add 1) Extends Object to our class 2) Default constructor if there are no constructor defined for a class 3)Adds this argument to […]

Share this article on

this keyword in Java

this is a reference to the current object within the instance method or constructor. Current object means the object which has called the method or the constructor. We can say this is a keyword which holds the address of the current object. We can use this to call any member of the current object. Compiler […]

Share this article on