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

Write a program to print fibonacci series up to count 10.

0 Answers  


What does the “static” keyword mean? Can you override private or static method in java?

0 Answers  


write a class to input 2 points by the user & check the line maked by the points is horizontal,vertical or rectangle?

1 Answers  


How do you reverse a list?

0 Answers  


What is integer parseint?

0 Answers  






What is update method and when it is called?

2 Answers   TCS,


Give some features of interface?

0 Answers  


What are the benefits of java?

0 Answers  


What is module with example?

0 Answers  


Explain the meaning of java applet.

0 Answers   TCS,


Can you override static methods?

0 Answers  


what is web.xml?and its use?

7 Answers   CTS,


Categories