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
Is boolean a data type in java?
What is static keyword in java?
Can we declare the main method of our class as private?
What does indexof return in java?
In java, how many ways you can take input from the console?
How are the elements of a gridbaglayout organized in java programming?
What are the concepts of 'OOPS'?
What is constructor in java ?
How would you format a date in java? I.e. In the ddmmyyy format?
What is local variable and instance variable?
Explain serialization and deserialization in java?
What is string array?
Difference between string s= new string (); and string s = "abv";?
Explain creating threads by implementing runnable class?
Is Constructor possible in abstract class in java ?