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 CardLayout?
Can we call virtual funciton in a constructor ?
What is variable explain?
wht is customised exception?
1 Answers Logica CMG, Novell, Prudential,
What is a programming object?
Is java supports multiple inheritance? explain?
Difference between interface and abstract class with ex.
4 Answers Cognizant, Tech Mahindra,
Explain where variables are created in memory?
Is it possible to make an array volatile?
finalize() method?
Is intellij better than eclipse?
Is java owned by oracle?