query: java when should I use the volatile keyword
positive_passages.docid: 21785
positive_passages.text: What is the volatile keyword useful for?
negative_passages.docid: 135058
negative_passages.text: What triggers a full garbage collection in Java?
negative_passages.docid: 141901
negative_passages.text: What's the difference between Synchronized and Lock in my example?
negative_passages.docid: 21484
negative_passages.text: When do you use the "this" keyword?
negative_passages.docid: 109841
negative_passages.text: How does Java Garbage collector handle self-reference?
negative_passages.docid: 144946
negative_passages.text: What does the Java assert keyword do, and when should it be used?
negative_passages.docid: 108256
negative_passages.text: Why do the JPA2 MetaModel get generated with volatile members?
negative_passages.docid: 18035
negative_passages.text: Java memory model: volatile variables and happens-before
negative_passages.docid: 37004
negative_passages.text: When should I use the “self” keyword?
negative_passages.docid: 134689
negative_passages.text: Setting an object to null vs Dispose()
negative_passages.docid: 150815
negative_passages.text: When to use volatile with multi threading?
negative_passages.docid: 89487
negative_passages.text: Is it safe to get values from a java.util.HashMap from multiple threads (no modification)?
negative_passages.docid: 150519
negative_passages.text: When should you use a local class in Java?
negative_passages.docid: 155454
negative_passages.text: What is the correct order of calling superclass methods in onPause, onStop and onDestroy methods? and Why?
negative_passages.docid: 51725
negative_passages.text: When is it preferable to use volatile boolean in Java rather than AtomicBoolean?
negative_passages.docid: 87386
negative_passages.text: What is the memory consumption of an object in Java?
negative_passages.docid: 60540
negative_passages.text: Should I instantiate instance variables on declaration or in the constructor?