the following code is about a inner class, the right output is "Sample", it make me confused, i think it should be nothing,
please help me!!
-----------------------------------------------------------
public final class Test4
{
class Inner
{
void
test()
{
if (Test4.this.flag);
{
sample();
}
}
}
private boolean flag = false;
public void sample()
{
System.out.println("Sample");
}
public Test4()
{
(new Inner()).test();
}
public static void main(
String args [])
{
new Test4();
}
}