Jun. 10th, 2005
как избежать армии
Jun. 10th, 2005 03:22 pmhttp://seattlepi.nwsource.com/paynter/227497_paynter08.html
Marine recruiters began a relentless barrage of calls to Axel as soon as the mellow, compliant Sedro-Woolley High School grad had cut his 17th birthday cake. And soon it was nearly impossible to get the seekers of a few good men off the line.
With early and late calls ringing in their ears, Marcia tried using call blocking. And that's when she learned her first hard lesson. You can't block calls from the government, her server said. So, after pleas to "Please stop calling" went unanswered, the family's "do not answer" order ensued.
( Read more... )
Marine recruiters began a relentless barrage of calls to Axel as soon as the mellow, compliant Sedro-Woolley High School grad had cut his 17th birthday cake. And soon it was nearly impossible to get the seekers of a few good men off the line.
With early and late calls ringing in their ears, Marcia tried using call blocking. And that's when she learned her first hard lesson. You can't block calls from the government, her server said. So, after pleas to "Please stop calling" went unanswered, the family's "do not answer" order ensued.
( Read more... )
Java Puzzler #3
Jun. 10th, 2005 09:57 pm
class X {
static int value;
static synchronized void init() {
if (!initialized) {
value += 7;
initialized = true;
}
}
static {
init();
}
static boolean initialized = false;
static public synchronized int getValue() {
init();
return value;
}
public void main(String[] args) {
System.out.println(getValue());
}
}
What will it print?
a) 0
b) 7
c) 14
d) undefined value
e) exception is thrown
f) none of the above