class shadowing

This commit is contained in:
Anna Kozlova
2012-06-04 22:35:37 +04:00
parent e3ab850ddc
commit e5828700d5
2 changed files with 32 additions and 3 deletions
@@ -1,3 +1,5 @@
import java.io.*;
public class Main {
static interface A
{
@@ -80,4 +82,17 @@ class BAO {
void foo(){}
}
}
class WithFileInputStream {
private static final Runnable runn = new Runnable() {
public void run() {
new FileInputStream("path");
}
};
private static class FileInputStream {
private FileInputStream(String str) {
}
}
}