Jlist not updating Sex date send free wink
I am sure you have seen many of these questions personally on your interviews and many of you would have answered them correctly as well. This is one of the tricky Java multi-threading questions you will see in senior Java developer Interview.Yes, you can make an array volatile in Java but only the reference which is pointing to an array, not the whole array.No matter whether you are a Java developer of 1, 2, 3, 4, 5, 6, 8, 9 or even 10 years of experience, you will find something interesting in this list.It contains questions which are super easy to answer, and also, a question which is tricky enough for even seasoned Java programmers.Nowadays, you will get questions from the areas where not many Java programmer looks e.g.
Another use of the volatile variable is to provide a memory barrier, just like it is used in framework.
You can keep design patterns also on the same list but growing number of an experienced programmer are now well aware of GOF design patterns and when to use them.
I have also worked hard to keep this list You guys are also lucky that nowadays there are some good books available to prepare for Java interviews, one of them which I particularly find useful and interesting to read is Java Programming Interview Exposed by Markham.
a counter, a price field or anything, you better make it volatile. because reading to a long variable is not atomic in Java and done in two steps, If one thread is writing or updating long value, it's possible for another thread to see half value (fist 32-bit).
While reading/writing a volatile long or double (64 bit) is atomic. One of the practical use of the volatile variable is to make reading double and long atomic.
Search for jlist not updating:
I am sure, once you read through this MEGA list of Java interview question, you should be able to do well on both telephonic and face to face programming interviews.