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 21, 2015 by badhwar.rohit
0 votes
4 views



Related Hot Questions

6 Answers

0 votes
NULL
answered Sep 21, 2015 by shegokar.anjeet
0 votes
NULL
answered Sep 21, 2015 by sameer rathore
0 votes
NULL
answered Sep 21, 2015 by rajeshujade
0 votes
NULL
answered Sep 21, 2015 by ashish singh
0 votes
NULL
answered Sep 21, 2015 by rajesh
0 votes
NULL
answered Sep 21, 2015 by gauravsinghal83

...