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

What are the differences between string, stringbuffer and stringbuilder?

1016


Is integer immutable in java?

978


Can we increase array size dynamically in java?

939


what is a green thread? : Java thread

1017


What is replaceall in java?

1017


how its run?

1057


Explain working of call by reference function invoking.

1018


What is the purpose of a transient variable?

1053


What is the difference between super class & sub class?

1180


What does the string method compareto () do?

1054


What does java ide mean?

1125


Can java run on google chrome?

1187


What is public/private protected in java?

1039


What is object-oriented programming?

1099


Can we execute a program without main?

1009