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 |
What is synchronization and why is it important in java programming?
What is the top class of AWT event hierarchy?
What are the differences between unchecked exception, checked exception, and errors?
Advantages of Inheritance in java.
Is java type safe?
What is google full form?
What are methods and how are they defined?
What types of index data structures can you have in java?
Explain importance of inheritance in java?
When garbage collector invokes object?s finalize() method?
Who found java?
What are static methods?