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 finalize()? Is finalize() similar to a destructor?
which one is performance wise advantageious from List,Set,Map?
Which class has no duplicate elements?
What is a class object?
Name the class that used to read objects directly from a stream?
What is getclass () getname () in java?
How do you compare arrays in java?
How to define a constant variable in Java?
what is run time polymorphism
explain different ways of using thread? : Java thread
what is tempplate pattern
What are Interceptors?