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
When we should go for codebase in applet?
Where is java swing used?
What is swing components in java?
What are the swing components?
How to align components in java swing?
Which containers use a border Layout as their default layout in swing?
What is awt and swing?
Why is model-view-controller architecture used in swing?
What are swings?
Is swing an api?
What are swings awt?
What are differences between swing and awt?
What is swing framework in java?
Is javafx better than swing?
What is java panel swing?