public class Demo_ThreadLocal {
public static void main(String[] args) {
Test t = new Test() {
@Override
public void method1() {
System.out.println("2222222222222");
t.method1();
Test t2 = new Test() {
public void method1() {
super.method3();
System.out.println("222222222222222");
t2.method1();
class Test {
public void method1() {
System.out.println("11111111111111");