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 the difference between awt and swt.

549


What is layout in java swing?

532


Which types of components are used in designing swing based gui?

525


What class is at the top of the AWT event hierarchy?

652


What are the components of swing?

530






Hello Everyone.. I m trying to develop a java swing application where i can display a doc file Jeditorpane or Jtextpane.

1755


What is a component in swing?

505


Explain the difference between swing and jsf.

612


What are the advantages of java swing over angular?

488


How to generate bill in java swing?

682


Which layout does swing use by default?

496


What are the two key features of swing?

528


What are heavy weight components ?

619


How to create a swing gui in java?

528


Why swing components are called lightweight components?

504