About 6,660,000 results
Open links in new tab
  1. What is the meaning of "this" in Java? - Stack Overflow

    Definition: Java’s this keyword is used to refer the current instance of the method on which it is used. Following are the ways to use this: To specifically denote that the instance variable is …

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

    43 The static keyword in Java means that the variable or function is shared between all instances of that class as it belongs to the type, not the actual objects themselves. So if you have a …

  3. 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 …

  4. 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 …

  5. 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 …

  6. 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...

  7. 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

  8. In laymans terms, what does 'static' mean in Java?

    The static keyword can be used in several different ways in Java and in almost all cases it is a modifier which means the thing it is modifying is usable without an enclosing object instance. …

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

    Aug 23, 2010 · Before understanding the transient keyword, one has to understand the concept of serialization. If the reader knows about serialization, please skip the first point. Note 1) …

  10. java - When should I use "this" in a class? - Stack Overflow

    Mar 10, 2010 · Offical java documentation page on this provides same use-cases. Within an instance method or a constructor, this is a reference to the current object — the object whose …