12-01-2009 11:47 AM
In the sample on persistentstorage the following piece of code exists. Its not a class or a function?
---------------------------------------
static
{
store = PersistentStore.getPersistentObject(0xdec6a67096f8
synchronized (store)
{
if (store.getContents() == null)
{
store.setContents(new Vector());
store.commit();
}
}
_data = new Vector();
_data = (Vector) store.getContents();
}
-----------------------------------
when and why is it executed?
Solved! Go to Solution.
12-01-2009 11:50 AM
Google:
java static initializer
12-01-2009 02:49 PM
Excellent!