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

    Apr 26, 2012 · Two questions about using a question mark "?" and colon ":" operator within the parentheses of a print function: What do they do? Also, does anyone know the standard term for them or where I can f...

  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 operation operating on 3 inputs. It's a shortcut for an if-else statement, and is also known as a conditional operator. In Perl/PHP it works as:

  3. java - && (AND) and || (OR) in IF statements - Stack Overflow

    Java has 5 different boolean compare operators: &, &&, |, ||, ^ & and && are "and" operators, | and || "or" operators, ^ is "xor" The single ones will check every parameter, regardless of the values, before checking the values of the parameters. The double ones will first check the left parameter and its value and if true (||) or false (&&) leave the second one untouched. Sound …

  4. 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: The == operator is used for reference comparison. It checks whether two references point to the exact same object in memory. Example: String str1 = new String ...

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

    Feb 7, 2013 · 1921 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 JVM will be started with Xms amount of memory and will …

  6. java - What does "Could not find or load main class" mean

    Aug 7, 2013 · A common problem that new Java developers experience is that their programs fail to run with the error message: Could not find or load main class ... What does this ...

  7. Remote debugging a Java application - Stack Overflow

    Jun 10, 2009 · I have a java application running on linux machine. I run the java application using the following: java myapp -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4000, suspend=n I have opened...

  8. 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 on two integer types.

  9. Setting JAVA_HOME - Stack Overflow

    JAVA_HOME and PATH are different, I didn't say point JAVA_HOME to the jre/bin directory. Try making sure that the PATH environment variable includes the jre/bin directory. For example, type java from the command prompt, does that work?

  10. java - Extracting .jar file with command line - Stack Overflow

    Dec 10, 2011 · I am trying to extract the files from a .jar file. How do I do that using command line? I am running Windows 7