Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

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



Government Jobs Opening


...