can we create a object in static block
class A
{
static {
A a=new A();
}
}
Answer Posted / anjani kumar jha
Yes We can do..........................there is no problem
static
{
FileSize fz=new FileSize();
System.out.println(fz);
}
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is the use of jfc in java swing?
Is swing an api?
Which window contains the swing controls?
Is java swing deprecated?
What are the advantages of java swing over angular?
Why swing is better than awt?
What is the what is the difference between invokeandwait() and invokelater()? ?
Is javafx better than swing?
What is the difference between swing and applet?
What is swing in java with example?
What is jpanel in java swing with example?
What are heavy weight components ?
What are swings?
What is layout in java swing?
Who created the swing?