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 is bytecode in java ?

1248


What do you know about java?

1009


What is a method vs function?

1091


What is currentthread()?

1055


Is there any limitation of using inheritance?

1148


What are the differences between forwarding () method and sendredirect() methods?

1144


What is the size of arraylist in java?

1065


When throws keyword is used?

1036


Can you call a method in a method?

1160


what is aggregation in java?

1072


What is jvm? How its run?

1132


What are class members by default?

1134


Why is the singleton pattern considered to be an anti pattern?

941


Can we call thread start () twice?

1008


What is predicate in java?

1099