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

Explain how to render an html page using only swing.

1232


What is the base class for all swing components?

786


Is swing an api?

727


What are the features of swing in java?

693


Which window contains the swing controls?

710


What are the advantages of the event-delegation model over the event-inheritance model?

856


What are differences between swing and awt?

730


What is the difference between swing and awt?

715


What is the design pattern that java uses for all swing components ?

674


Why swing components are called lightweight components?

695


How to print in java swing application?

718


What are swings?

691


Is swing still used in java?

685


What is the difference between a scrollbar and a jscrollpane ?

1035


What is the use of jfc in java swing?

830