A group of statements enclosed by { and }. : block « Statements « SCJP

Home
SCJP
1.Java Source And Data Type
2.Operators
3.Modifiers
4.Type Casting
5.Statements
6.Object Oriented
7.Thread
8.Utility Classes
9.File
SCJP » Statements » block 
5.14.1.A group of statements enclosed by { and }.
The statement block is treated as a single statement when used with selection, 
iteration, and other statements.
  
public class MainClass {
  public static void main(String[] argv) {
    {
      int x = 1;
      int y = 2;
      x += y;
    }

  }
}
5.14.block
5.14.1.A group of statements enclosed by { and }.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.