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 the difference between method and means?

0 Answers  


What is the maximum size of byte array in java?

0 Answers  


Write a program to find maximum and minimum number in array?

0 Answers  


What is ++ a in java?

0 Answers  


What is a condition in java?

0 Answers  






Explain about OOPS concepts and fundamentals.

0 Answers   Syntel, Visa,


How is final different from finally and finalize?

0 Answers  


How does multithreading take place on a computer with a single cpu?

0 Answers  


What are the different types of garbage collectors in java?

0 Answers  


java is puerly object oriented or not ?

5 Answers  


What is classpath?

0 Answers  


what is difference between servletconfig and servletcontext?

3 Answers   Amdocs,


Categories