I have defined an object and declared a static variable i. In the get() method, when I try to print the instance and class variable, both print the
i
get()
you didn't declare any instance variable in here.only one static variable.if you declare instance variable without assigning value,then if you try to print that instance variable value using "this" key word you can get default value as 0.