About 9,000,000 results
Open links in new tab
  1. java - What is a Question Mark "?" and Colon - Stack Overflow

    Apr 26, 2012 · The Java jargon uses the expression method, not functions - in other contexts there is the distinction of function and procedure, dependent on the existence of a return type, …

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

  3. What is the point of the diamond operator (<>) in Java?

    The diamond operator in java 7 allows code like the following: List<String> list = new LinkedList<>(); However in Java 5/6, I can simply write: List<String> list = new LinkedList(); …

  4. 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, 5 months ago Modified 1 year, 2 months ago Viewed 445k times

  5. Is there a difference between x++ and ++x in java?

    Jul 7, 2009 · 12 In Java there is a difference between x++ and ++x ++x is a prefix form: It increments the variables expression then uses the new value in the expression. For example if …

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

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

  7. What is the difference between == and equals () in Java?

    0 In Java, == and the equals method are used for different purposes when comparing objects. Here's a brief explanation of the difference between them along with examples: == Operator: …

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

    Jan 2, 2010 · 7 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 :- …

  9. java - Using NOT operator in IF conditions - Stack Overflow

    Jan 23, 2011 · Is it really a good practice to avoid using NOT operator in IF conditions in order to make your code better readable? I heard the if (doSomething()) is better then if ...

  10. What are the -Xms and -Xmx parameters when starting JVM?

    Feb 7, 2013 · The flag Xmx specifies the maximum memory allocation pool for a Java Virtual Machine (JVM), while Xms specifies the initial memory allocation pool. This means that your …