0

I referred through lots of links and blogs , but could not get a perfect answer to this question . I can use

static {
    Test test = new Test();
}

but not

static {
@Inject 
Test test; 
}

Why is this so?

Dalu
  • 172
  • 3
  • 18

0 Answers0