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

    It's a ternary operator (in that it has three operands) and it happens to be the only ternary operator in Java at the moment. However, the spec is pretty clear that its name is the conditional …

  2. What does the ^ operator do in Java? - Stack Overflow

    Jan 2, 2010 · It is the Bitwise xor operator in java which results 1 for different value of bit (ie 1 ^ 0 = 1) and 0 for same value of bit (ie 0 ^ 0 = 0) when a number is written in binary form.

  3. How do the post increment (i++) and pre increment (++i) …

    How do the post increment (i++) and pre increment (++i) operators work in Java? Asked 15 years, 9 months ago Modified 1 year, 6 months ago Viewed 449k times

  4. What is the percent % operator in java? - Stack Overflow

    May 15, 2017 · What is the percent % operator in java? Asked 8 years, 7 months ago Modified 4 years, 5 months ago Viewed 64k times

  5. What is the purpose of the unsigned right shift operator ">>>" in …

    May 26, 2013 · The >>> operator lets you treat int and long as 32- and 64-bit unsigned integral types, which are missing from the Java language. This is useful when you shift something that …

  6. double colon) operator in Java 8 - Stack Overflow

    Nov 15, 2013 · The double colon, i.e., the :: operator, was introduced in Java 8 as a method reference. A method reference is a form of lambda expression which is used to reference the …

  7. What does the arrow operator, '->', do in Java? - Stack Overflow

    1 The arrow operator is used to create lambda expressions, linking/separating parameters with the lambda body. syntax: (parameters) -> {expression}; It is also an efficient way of …

  8. Pipe (|) operator in Java - Stack Overflow

    Nov 22, 2016 · 4 Since the question is titled "pipe (|) operator in Java" and tags of this question are also java and operators, it might be useful to address this in a bit broader context and …

  9. java - What is a Question Mark "?" and Colon - Stack Overflow

    Apr 26, 2012 · Ternary operator refers to any operator with three parameters, thus this is a ternary operator but not the ternary operator. Major languages (C#, Java, PHP) consider it a …

  10. What is the difference between & and && in Java? - Stack Overflow

    Apr 9, 2011 · I always thought that && operator in Java is used for verifying whether both its boolean operands are true, and the & operator is used to do Bit-wise operations …