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 method is used to specify a container's layout?
Why swings are used in java?
What are the different types of layout managers used in swing?
Which is better swing or awt?
What is the difference between swing and applet?
What is event in java swing?
What are the components of java swing?
What is the process of setting the layout manager?
Is swing part of core java?
What are the components of swing in java?
How to create a swing gui in java?
What are differences between swing and awt?
What is layout in java swing?
What is the function of lightweight components used in swing?
What is pane in swing?