In android, when do we need to put semicolon after curly brackets: }; : In Java, semicolon comes after curly brackets only for arrays and enum.
But I found it different in Android coding. For example why there is a **;** after **}** in the following code:

    Thread myThread=new Thread(){
        @Override
        public void run(){
            // something
        }
    };

