What is non static block in java
Answer Posted / sreenu karampudi
Non static blocks: Code within {} is non-static block
for example:
{
// code
}
| Is This Answer Correct ? | 28 Yes | 3 No |
Post New Answer View All Answers
Explain about sets?
What is a super method?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
Can a main method be overloaded?
How do you create immutable object in java?
Can you change array size in java?
What do you know about the garbage collector in java?
What are different access specifiers in java? Explain
In the below example, what will be the output?
What is use of functional interface in java 8? Explain
What is ternary operator?
How do you check if an arraylist is not empty?
When can you say a graph to be a tree?
What is static method with example?
Explain runtime exceptions?