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 |
How do I run java on windows?
what is private constructor?what are the uses of writing private constructor in our program?
Program to print 1 1 2 1 2 3 1 2 3 4 like that
What are the 7 types of characters?
What are access specifiers in java ?
0 Answers Akamai Technologies,
Is null or empty java?
How will you initialize an Applet?
Which class should you use to obtain design information about an object
What do you mean by flow of struts?
What is a jagged array in java?
What is string subsequence method?
Java is Pass by Value or Pass by Reference?