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

How do I run java on windows?

0 Answers  


what is private constructor?what are the uses of writing private constructor in our program?

10 Answers  


Program to print 1 1 2 1 2 3 1 2 3 4 like that

8 Answers   Huawei,


What are the 7 types of characters?

0 Answers  


What are access specifiers in java ?

0 Answers   Akamai Technologies,






Is null or empty java?

0 Answers  


How will you initialize an Applet?

0 Answers  


Which class should you use to obtain design information about an object

2 Answers  


What do you mean by flow of struts?

0 Answers   Amdocs,


What is a jagged array in java?

0 Answers  


What is string subsequence method?

0 Answers  


Java is Pass by Value or Pass by Reference?

0 Answers   BirlaSoft,


Categories