About 50 results
Open links in new tab
  1. 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 …

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

  3. How is the default max Java heap size determined?

    For Java SE 5: According to Garbage Collector Ergonomics [Oracle]: initial heap size: Larger of 1/64th of the machine's physical memory on the machine or some reasonable minimum. Before J2SE 5.0, …

  4. Remote debugging a Java application - Stack Overflow

    Jun 10, 2009 · Steps: Start your remote java application with debugging options as said in above post. Configure Eclipse for remote debugging by specifying host and port. Start remote debugging in …

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

    Since java.lang.String class override equals method, It return true if two String object contains same content but == will only return true if two references are pointing to same object. Here is an example …

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

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

  7. 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, 10 months ago Modified 1 year, 7 months ago Viewed 449k times

  8. Setting JAVA_HOME environment variable in MS Windows

    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 …

  9. Is Java "pass-by-reference" or "pass-by-value"? - Stack Overflow

    Sep 3, 2008 · 871 Java is always pass by value, with no exceptions, ever. So how is it that anyone can be at all confused by this, and believe that Java is pass by reference, or think they have an example …

  10. Force Java timezone as GMT/UTC - Stack Overflow

    The java.util.Date and java.sql.Date classes store the actual time (milliseconds) in UTC. To format these on output to another timezone, use SimpleDateFormat. You can also associate a timezone with the …