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

Is boolean a data type in java?

961


What is static keyword in java?

1001


Can we declare the main method of our class as private?

998


What does indexof return in java?

987


In java, how many ways you can take input from the console?

993


How are the elements of a gridbaglayout organized in java programming?

981


What are the concepts of 'OOPS'?

1070


What is constructor in java ?

1191


How would you format a date in java? I.e. In the ddmmyyy format?

1376


What is local variable and instance variable?

1053


Explain serialization and deserialization in java?

1007


What is string array?

1063


Difference between string s= new string (); and string s = "abv";?

1214


Explain creating threads by implementing runnable class?

1167


Is Constructor possible in abstract class in java ?

1062