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 jagged array in java?
What is JAVA? Why it is platform independent?
what is difference between String buffer and String builder?
what is the use of clone method? why user cant overwrite in sub class without its proper defination.
What is primitive array?
What modifiers are allowed for methods in an interface?
What does || mean in code?
What is the difference between jfc & wfc?
What are the benefits of operations?
What is the purpose of static methods and static variables?
what is Remote Reference Layer ?
how can be object class inherited to all class in a program when java does not support multiple inheritance??