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 a java predicate?
What is entry in java?
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
What ide should I use for java?
What is string data type?
What do you understand by private, protected and public?
What is the difference in between cpp and java? Can u explain in detail?
What is a generic code?
What is the purpose of skeleton and stub?
How to create a base64 decoder in java8?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
Is the milky way in a void?
What does += mean coding?
Why does abstract class have constructor?
What is the difference between synchronized and synchronized block?