Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / naresh tuhania

Yes we can do this . Because we can create an object at
runtime and static block is also execute when a class is
loaded by the class loader at runtime

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the base class for all swing components?

1042


What are swings?

975


Explain how to render an html page using only swing.

1444


Which layout does swing use by default?

982


Which package is needed for swing components?

909


What is the use of double buffering in swings?

1029


Is swing better than awt?

1063


What is the difference between swing and awt?

961


What are the differences between Swing and AWT?

1125


What are the components of java swing?

1001


What is java swing components?

1090


Why are swing components called lightweight?

968


What are swing controls?

965


What is import javax swing * used for?

984


Can a class be it?s own event handler? Explain how to implement this?

982