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 difference between call by value and call by reference?
Can substring create new object?
When arithmeticexception is thrown?
What if constructor is protected in java?
What are the basic control structures?
whether java is fully object oriented language or partially object oriented language
Suppose i have two threads t1 and t2 are running.How the main thread will know that the two threads t1,t2 execution has completed?
What is the maximum size of array in java?
Explain about varargs in java?
What are methods in java?
what is the difference between applet and swing and gui application in java . What we do with the collections set and list interface
2 Answers CTS, Phoenix Technologies,
Can java list contain duplicates?