I got this error: "illegal start of expression" while defining static variable. I noticed that it works few minutes ago.
Code:
class Demo{
Demo() {
static int a = 7;
}
}
Thanks!
Illegal start of expression
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Zoran HorvatRank #792 · 2.9K reputationPosted Aug 4, 2011, 3:44 AM EDT
Zoran
VulpesRank #55 · 29.2K reputationPosted Aug 4, 2011, 5:30 AM EDT
AartiRank #2,383 · 594 reputationPosted Nov 16, 2011, 11:26 PM EST