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
Explain 5 features introduced in jdk 1.7?
what is deadlock? : Java thread
Explain the inheritance?
How many decimal digits is 64 bit?
How are the elements of a gridbaglayout organized in java programming?
How does hashmap work in java ?
Is ruby built on java?
How do you create immutable object in java?
Why are global variables used?
What are the loops in java?
What does math floor () do?
What are 3 data types?
Why main() method is public, static and void in java ?
What is outofmemoryerror in java?
What are static blocks and static initalizers in java ?