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 |
What is the difference between method and means?
What is the maximum size of byte array in java?
Write a program to find maximum and minimum number in array?
What is ++ a in java?
What is a condition in java?
Explain about OOPS concepts and fundamentals.
How is final different from finally and finalize?
How does multithreading take place on a computer with a single cpu?
What are the different types of garbage collectors in java?
java is puerly object oriented or not ?
What is classpath?
what is difference between servletconfig and servletcontext?