Please notify with any improvement if required .
or any explanation regarding this.
public class Test{
//this is instance or class varible or field that is declared as static
static int total = 10;
public static void main(String[]args){
//Object of class Test created
new Test();
}
//Method test Declared
public Test(){
System.out.println("In Test");
//Here this is calling current obect of the class Test.
System.out.println(this);
//Here we are calling static variable total of the current class using this keyword.
int temp = this.total;
if(temp>5){
System.out.println(temp);
}
}
}