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

What is the use of jfc in java swing?

1087


Is swing an api?

976


Which window contains the swing controls?

954


Is java swing deprecated?

1115


What are the advantages of java swing over angular?

959


Why swing is better than awt?

1023


What is the what is the difference between invokeandwait() and invokelater()? ?

1101


Is javafx better than swing?

1055


What is the difference between swing and applet?

1021


What is swing in java with example?

988


What is jpanel in java swing with example?

995


What are heavy weight components ?

1075


What are swings?

996


What is layout in java swing?

1003


Who created the swing?

934