Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
3
Answers
Illegal start of expression
Andrew
13y
1.6k
1
Reply
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!
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Daemon Thread
Synchronized Block and Method