Organizational Research By

Surprising Reserch Topic

anonymous code blocks in java


anonymous code blocks in java  using -'java'

Are there any practical uses of anonymous code blocks in Java?

public static void main(String[] args) {
    // in
    {
        // out
    }
}


Please note that this is not about named blocks, i.e.

name: {
     if ( /* something */ )
         break name;
}


.
    

asked Sep 16, 2015 by pradip.bhoge
0 votes
25 views



Related Hot Questions

6 Answers

0 votes
NULL
answered Sep 16, 2015 by dhananjayksharma
0 votes
NULL
answered Sep 16, 2015 by rajeevr642
0 votes
NULL
answered Sep 16, 2015 by mannar kande
0 votes
NULL
answered Sep 16, 2015 by loknath.ganji
0 votes
NULL
answered Sep 16, 2015 by sujata naik
0 votes
NULL
answered Sep 16, 2015 by android_master

...