| Bruce Eckel's Thinking in Java | Contents | Prev | Next |
destroy an object
{
int x = 12;
/* only x available */
{
int q = 96;
/* both x & q available */
}
/* only x available */
/* q “out of scope” */
}{
int x = 12;
{
int x = 96; /* illegal */
}
}String s = new String("a string");
} /* end of scope */