About 11,900,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 operator or …

  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. ex :- To use your …

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

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

    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

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

    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 does not …

  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 existing method by …

  7. 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 mention, that in …

  8. 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 implementing …

  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 conditional …

  10. java - Differences in boolean operators: & vs && and | vs || - Stack ...

    Oct 25, 2010 · The & operator always examines every condition in the clause, so in the examples above, a.something may be evaluated when a is in fact a null value, raising an exception.