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

Answer Posted / rabin pati

Yes we can create

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which swing methods are thread-safe?

644


Is swing thread-safe?

571


How to render an html page using only swing.

595


Why swing is better than awt?

566


What is the use of swing in java?

519






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

568


Is swing better than awt?

531


Why are swing components called lightweight?

544


How to move from one page to another in java swing?

621


What is the function of internal frame in swing?

613


Which is better swing or awt?

534


What is difference between jframe and swing?

517


What is Java Swing?

604


Why swings are used in java?

527


What is double buffering ?

572