About 17,900,000 results
Open links in new tab
  1. What is the Java ?: operator called and what does it do?

    Not only in Java, this syntax is available within PHP, Objective-C too. In the following link it gives the following explanation, which is quiet good to understand it: A ternary operator is some …

  2. java - What is the volatile keyword useful for? - Stack Overflow

    I came across the volatile keyword in Java. Not being very familiar with it, I found this explanation. Volatile variables are a simpler -- but weaker -- form of synchronization than locking, which...

  3. What is the meaning of "this" in Java? - Stack Overflow

    this is a keyword in Java. Which can be used inside method or constructor of class. It (this) works as a reference to a current object whose method or constructor is being invoked. this keyword …

  4. What does the 'static' keyword do in a class? - Stack Overflow

    Static Method A method in Java is static when it is preceded by the keyword “static”. Some points that you need to remember about the static method include: A static method belongs to the …

  5. Using the keyword "this" in java - Stack Overflow

    I'm trying to get an understanding of what the the java keyword this actually does. I've been reading Sun's documentation but I'm still fuzzy on what this actually does.

  6. java - What are Transient and Volatile Modifiers? - Stack Overflow

    Aug 23, 2010 · The volatile and transient modifiers can be applied to fields of classes 1 irrespective of field type. Apart from that, they are unrelated. The transient modifier tells the …

  7. Why does Java have transient fields? - Stack Overflow

    May 26, 2009 · The transient keyword in Java is used to indicate that a field should not be part of the serialization (which means saved, like to a file) process. From the Java Language …

  8. Why should I use the keyword "final" on a method parameter in …

    Feb 1, 2009 · Use the keyword final when you want the compiler to prevent a variable from being re-assigned to a different object. Whether the variable is a static variable, member variable, …

  9. java - What does 'synchronized' mean? - Stack Overflow

    Jul 6, 2009 · The synchronized keyword is all about different threads reading and writing to the same variables, objects and resources. This is not a trivial topic in Java, but here is a quote …

  10. How does the "final" keyword in Java work? (I can still modify an ...

    In Java we use final keyword with variables to specify its values are not to be changed. But I see that you can change the value in the constructor / methods of the class. Again, if the variable is