Andrew

Andrew

  • NA
  • 89
  • 200k

Illegal start of expression

Aug 4 2011 7:35 AM
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!

Answers (3)