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 are the swing components in java?
What is the role of java swing?
What is content pane in swing?
What do you mean by java swing?
Why would you use swingutilities.invokeandwait or swingutilities.invokelater?
What are swings?
Where is java swing used?
What is the mean of swing?
Explain the difference between awt and swt.
What are the differences between Swing and AWT?
What are heavyweight components? What is lightweight component?
What is the function of lightweight components used in swing?
What is swing used for?
What is swing in java with example?
What is jpanel in java swing with example?