PDA

View Full Version : Java static... please anybody explain this code to me.


chamal_anjana
Sep 22, 2013, 09:19 PM
class Test{

Test(int I){
System.out.println("Test(" +i +")");
}
}

class Q12{

static Test t1 = new Test(1);
Test t2 = new Test(2);
static Test t3 = new Test(3);

public static void main(String[] args){
Q12 Q = new Q12();
}
}