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 / anjani kumar jha

Yes We can do..........................there is no problem

static
{
FileSize fz=new FileSize();
System.out.println(fz);
}

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why does JComponent have add() and remove() methods but Component does not?

943


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

1043


What is swing and awt in java?

946


How to print in java swing application?

893


Explain the difference between jfc & wfc.

992


Is swing still used in java?

908


What is the purpose of action interface in swing?

1000


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

869


What is import javax swing * used for?

936


What are the two key features of swing?

945


Explain how to render an html page using only swing.

1415


What are swing controls?

906


Is swing still used?

885


What is the difference between invokeAndWait() and invokeLater()?

1001


What are heavy weight components ?

996