Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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 meant by data hiding/encapsulation?

0 Answers   Cyient,


What is the use of set in java?

0 Answers  


What are advantages of exception handling in java?

0 Answers  


Why stringbuffer is faster than string?

0 Answers  


What is the difference between private & public & friendly classes?

0 Answers  






can anyone explain me the concept of autoboxing?

3 Answers  


1).what is the difference between below examples String s="vijay"; String s=new String("vijay");

12 Answers   Mascon, Satyam, TCS,


What are the java ide's? Explain

0 Answers  


Mention some interfaces implemented by linked list in java.

0 Answers  


What is keyword and identifier?

0 Answers  


can two class in a code be public??if yes then how??

2 Answers  


What is difference between local variable and global variable?

0 Answers  






Categories