What are blocks?.



What are blocks?...

Answer / 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

More Core Java Interview Questions

What is finalize()? Is finalize() similar to a destructor?

0 Answers  


which one is performance wise advantageious from List,Set,Map?

6 Answers  


Which class has no duplicate elements?

8 Answers  


What is a class object?

0 Answers  


Name the class that used to read objects directly from a stream?

4 Answers   Wipro,






What is getclass () getname () in java?

0 Answers  


How do you compare arrays in java?

0 Answers  


How to define a constant variable in Java?

1 Answers   TCS,


what is run time polymorphism

4 Answers  


explain different ways of using thread? : Java thread

0 Answers  


what is tempplate pattern

4 Answers   IBM, RBS,


What are Interceptors?

1 Answers  


Categories