Hello to everyone.
Usually the static variable that we never to use "this" pointer concepts.
Is it true?whereas i saw one programme where static variable used this pointer.
Even as i've written the same code.
-----------------
public class Staticthis {
public static int i = 22;
public void drive() {
static int i = 10;
System.out.println(this.i);
}
public static void main(
String argv[]) {
int i = 99;
Staticthis h = new Staticthis();
h.drive();
}
}
anyone can you explain this code.
regards
rex