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...

What is non static block in java

Answer Posted / avneet singh bhatia

Any method which is not the part of main function or not be
declared with any static keyword is non static block in java

For example:

class Abc
{
void show()//non static method
{
System.out.println("non static block");
}
static
{
S.O.P("static");
}
}

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In java, how we can disallow serialization of variables?

935


Why is serialization required?

913


Define max and min heap, also the search time of heap.

986


What is string [] java?

898


What is the arraylist in java?

980


Can we change the value of static variable?

901


What are the benefits of java?

1086


What are the two types of java programming?

998


How do you replace a string in java?

960


What is a singleton puppy?

920


Are primitives objects?

1001


What are the characteristics of java?

981


Why is static used?

981


How does callback work in java?

994


Difference between static synchronization vs. Instance synchronization?

1049