Answer Posted / 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 View All Answers
What is collection api?
How do you use compareto method?
What is parsing in grammar?
What environment variables are required to be set on a machine in order to run Java programs?
What is difference between char array and string?
What is a qms manual?
Can you explain the meaning of aggregation and composition
What is difference between string and new string?
How does hashset work in java?
What is a default method?
Why do we need data structure in java?
What are different types of arrays?
what is synchronization? : Java thread
Is arraylist a class in java?
What are the benefits of operations in java?