I don't understand this; you have interface ATable :
public interface ATable {
       String getCurrentUserName();
       String getTableName();
   }
Then you create object:
ATable aTable = new ATable() {
           @Override
           public String getCurrentUserName() {
               return "Amigo";
           }

           @Override
           public String getTableName() {
               return "DashboardTable";
           }
       };
I thought you aren't able to create objects from interfaces, only to implement them in other classes.