Anonymous classes in java

Type2:

 

Test Multiple Read By threads in java