What are blocks?.
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 |
When will we use them?
How do you delete a list in java?
what is difference between equals and ==?
Difference between Reader/Writer and InputStream/Output Stream?
9 Answers Adobe, Kirusa, Verizon,
Name the method that used to clear the buffer ?
When do we use synchronized blocks and advantages of using synchronized blocks?
What is the difference between compile-time polymorphism and runtime polymorphism?
explain the concept of virtual method invocation in polymorphism in detail?
What super () does in java?
What is the platform?
Which java collection does not allow null?
Why generics are used in java?