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 |
Difference between overloading and overridding?
How can we find the sum of two linked lists using stack in java?
Define Wrapper Classes in Java.
What is an example of a boolean?
Which all r Final classes in java except string?
What are the types of sockets in java?
What is the finalize method do?
What are the features of java?
What is the difference between static class and normal class?
How many static init can you have?
Explain the selection sort algorithm?
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread