what is the difference between static block and static
method
Answer Posted / raghavendra
As soon as the class is loaded, the static block will be
executed. Where as the static method should be called
explictly.
| Is This Answer Correct ? | 51 Yes | 4 No |
Post New Answer View All Answers
How do you remove duplicates in java?
What is a line break?
What is the difference between preparedstatement and statement in java?
What are inbuilt functions in java?
What is the purpose of the finalize() method?
What are the supported platforms by java programming language?
Does collectionutils isempty check for null?
Which is easier netbeans or eclipse?
What is final modifier?
Why is a string immutable?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
When should the method invokelater() be used?
What is the difference between jvm and jre? What is an interface?
Define max and min heap, also the search time of heap.
Define interface in java?