Answer Posted / madan
static block contains a code which is executed without
object of a class.i.e is excuted at the time of class
loading
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
Is minecraft 1.15 out?
Can singleton class be inherited in java?
What is the difference between static and non-static variables in java programming?
what is instanceof operator used in java?
What are the methods available in a class?
Explain inner classes ?
How to display arraylist values in java?
Can a method be static?
What is the new line character?
Can a function return a function?
What will happen if a thrown exception is not handled?
What is keyset in java?
What does math floor () do?
When should you use arraylist and when should you use linkedlist?