日期:2014-05-20 浏览次数:21016 次
class A
{
int x;
static int y;
void f()
{
this.x = 100;
A.y = 200;
}
}
class A2
{
int x;
static int y;
void f()
{
x = 100;
y = 200;
}
}
class B
{
void f()
{
this.g();
B.h();
}
void g()
{
System.out.println("ok");
}
static void h()
{
System.out.println("hello");
}
}
class B2
{
void f()
{
g();
h();
}
void g()
{
System.out.println("ok");
}
static void h()
{
System.out.println("hello");
}
}