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 |
Which object oriented concept is achieved by using overloading and overriding?
Is there memory leaks in java?
How many boolean functions are there?
what is request processor?
What is map and hashmap in java?
How to use Media tracker Class.
Can you override static method in java?
How do you add an element to an arraylist in java?
Is there any limitation of using inheritance?
How the metacharacters are different from the ordinary characters?
Which oo concept is achieved by using overloading and overriding?
Do I need to import java.lang package any time? Why?