What is non static block in java
Answer Posted / avneet singh bhatia
Any method which is not the part of main function or not be
declared with any static keyword is non static block in java
For example:
class Abc
{
void show()//non static method
{
System.out.println("non static block");
}
static
{
S.O.P("static");
}
}
| Is This Answer Correct ? | 8 Yes | 4 No |
Post New Answer View All Answers
Difference between operator overloading and function overloading
Is .net better than java?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
What is command line argument in java?
Where are variables stored?
which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com
Write a code to show a static variable?
Can an object be null?
What two classes are used to read data only?
Is object a data type?
What is runtime locatable code?
What methods are used in Servlet?Applet communication?
What is keyword and identifier?
Why do I need to declare the type of a variable in java?
Name few java 8 annotations ?