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 |
How can we create a synchronized collection from given collection?
What restrictions are placed on method overloading?
What do you know about the garbate collector?
What is data type in computer?
Is zero a natural number?
Can you explain the difference b/n abtract and interface with a good example,?In what cases we have use abtract and what case interface?
What is hashtable and explain features of hashtable?
Can you override a final method?
What does it mean that a class or member is final?
What will happen if we cannot mention "finally" in Java Program ???
Explain restrictions on using enum?
What is keyword in oop?