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 |
Is a method a procedure?
What do you understand by classes in java?
How can an exception be thrown manually by a programmer?
class A { class B { psvm(String args[]) { } } } if the prg saved in A.java whats the o/p?
Justify your answer that you can't define a method inside another method in java, if you can then how?
What is static in java?
Write a program for recursive Traverse?
Can a static member function access member variable of an object?
what is overloading and overriding with example?
What is final keyword in java? Give an example.
What do you understand by the term wrapper classes?
What Is Composition?