can we create a object in static block
class A
{
static {
A a=new A();
}
}

Answer Posted / chellammal

Yes, we can create a object in static block

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to change button color in java swing?

521


What method is used to specify a container's layout?

520


What is swing and awt in java?

519


What is an event and what are the models available for event handling?

548


What are the various components of swing?

515






What is awt and swing?

547


What do you mean by java swing?

516


Explain the difference between swing and jsf.

618


What is swing framework in java?

556


Is java swing still used?

537


Write a program to paint the off-screen buffer in swings

562


What is import javax swing in java?

512


What is difference between jframe and swing?

517


Which method of the Component class is used to set the position and size of a component?

568


What is swing package in java?

524