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

When we should go for codebase in applet?

1032


Where is java swing used?

1036


What is swing components in java?

908


What are the swing components?

900


How to align components in java swing?

1070


Which containers use a border Layout as their default layout in swing?

1000


What is awt and swing?

937


Why is model-view-controller architecture used in swing?

928


What are swings?

942


Is swing an api?

937


What are swings awt?

895


What are differences between swing and awt?

985


What is swing framework in java?

999


Is javafx better than swing?

1015


What is java panel swing?

960