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 are blocks?.

Answer Posted / amit singh

blocks is a group of single and compound statements
between the braces { }
class Amit
{
Amit()
{
Sysem.out.println("constructor");
}
{//begin block instance itializer block

System.out.prinln("amit");

}//end the block

psvm(String [] args)
{

boolean b=true;

if(b)
{//begin block

System.ou.println("boolean");

}//end of block
.
.
.//crete objec in psvm
.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does string intern() method do?

1091


Is hashset ordered java?

1098


Explain the difference between an Interface and an Abstract class?

1179


What is replacefirst in java?

1118


I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?

986


What are default methods ?

1052


What is the arraylist in java?

1059


What is the difference between iterator and list iterator?

1044


What is data type example?

969


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

1328


Write a program to print all permutations of string?

1122


Explain about static imports in java?

1002


Can you override static methods?

1009


Can private class be extended java?

1034


What is finally in Java?

1084