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 double parsedouble in java?
How do you write a scanner class in java?
What is the difference between compile-time polymorphism and runtime polymorphism?
What is null mean in java?
What is super in java?
Can you declare the main method as final?
What is entry set in java?
What are the main uses of this keyword?
What is the difference between public, private, protected, and friend access?
What is the difference between scrollbar and scrollpane?
How to reverse a string in java?
How do you create a reference in java?
What do you mean by JVM?
What is json parser in java?
What are the supported platforms by java programming language?