what is the difference between static block and static
method
Answer Posted / sukhvider
static block executes whenever the class loaded in the Java virtual machine that means object is before going to main Method.
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Explain about java sdk?
Can memory leak happen java?
What is the return type of the main method?
What is garbage collection? Can it be forced to run?
Explain the transient field modifier?
Can we have more than one package statement in source file ?
How to disable caching on back button of the browser?
What is static synchronization?
What is the vector class in java programming?
What is the difference between object oriented programming language and object based programming language?
What is the reason behind using constructors and destructors?
What is the range of the short type?
what is the difference between Object Based Language and Object Oriented Language?
What are the advantages of java?
What do you mean by default constructor in java?