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

When will we use them?

0 Answers  


How do you delete a list in java?

0 Answers  


what is difference between equals and ==?

0 Answers  


Difference between Reader/Writer and InputStream/Output Stream?

9 Answers   Adobe, Kirusa, Verizon,


Name the method that used to clear the buffer ?

2 Answers  






When do we use synchronized blocks and advantages of using synchronized blocks?

0 Answers  


What is the difference between compile-time polymorphism and runtime polymorphism?

0 Answers  


explain the concept of virtual method invocation in polymorphism in detail?

0 Answers   TCS,


What super () does in java?

0 Answers  


What is the platform?

0 Answers  


Which java collection does not allow null?

0 Answers  


Why generics are used in java?

0 Answers  


Categories