wood burning stoves 2.0*
The moose likes Java in General and the fly likes class level access Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "class level access " Watch "class level access " New topic
Author

class level access

Ravee Bhat
Ranch Hand

Joined: Nov 26, 1999
Posts: 72


I know having the flower brackets around vector declaration does'nt make any sense.(or does it?! in some particular case!!). Anyway the aVector is not visible inside aMethod. How does one describe this behaviour?
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
In this
is a member initialization block and any variables (aVector)declared inside it are not visible after the block is exited.
In this:

The effect of the member initialization block is to initialize the member variable aVector, and its effects are visible after the block is exited.
[ March 29, 2003: Message edited by: Barry Gaunt ]
[ March 29, 2003: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
wood burning stoves
 
subject: class level access
 
Similar Threads
using a protected method
Vector class
Saving GUI info. to files
Using a Vector within a Vector
Iterator is better than Vector when return big amount data?