Organizational Research By

Surprising Reserch Topic

what is teh 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 ajit.chavhan
0 votes
2 views



Related Hot Questions

6 Answers

0 votes
NULL
answered Sep 16, 2015 by gauravg.gwl
0 votes
NULL
answered Sep 16, 2015 by akhilesh
0 votes
NULL
answered Sep 16, 2015 by patelnikul321
0 votes
NULL
answered Sep 16, 2015 by sachin wagh
0 votes
NULL
answered Sep 16, 2015 by girisha
0 votes
NULL
answered Sep 16, 2015 by jekbishnoi

...