About 4,390,000 results
Open links in new tab
  1. java - What is a NullPointerException, and how do I fix it? - Stack ...

    If a reference variable is set to null either explicitly by you or through Java automatically, and you attempt to dereference it you get a NullPointerException. The NullPointerException (NPE) …

  2. How to set the environment variables for Java in Windows

    Step 5: Enter the Variable name as JAVA_HOME and the value to your jdk bin path ie c:\Programfiles\Java\jdk-1.6\bin and NOTE Make sure u start with .; in the Value so that it …

  3. java - How do I find where JDK is installed on my windows …

    Jan 13, 2011 · I need to know where JDK is located on my machine. On running Java -version in cmd, it shows the version as '1.6.xx'. To find the location of this SDK on my machine I tried …

  4. java - What does a "Cannot find symbol" or "Cannot resolve …

    Another example of this is when you use (Java 9+) java SomeClass.java to compile and run a class. If the class depends on another class that you haven't compiled (or recompiled), you are …

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

    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:

  6. java - How to know the jdk version on my machine? - Stack Overflow

    Java Runtime JRE and the Java development kit JDK are two separate things. If you want to check the version of the Java compiler used within your local JDK use javac -version.

  7. 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, 8 months ago Modified 1 year, 5 months ago Viewed 448k times

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

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

    Aug 7, 2013 · java [ <options> ] <class-name> [<arg> ...] where <option> is a command line option (starting with a "-" character), <class-name> is a fully qualified Java class name, and …

  10. Java - Convert integer to string - Stack Overflow

    Given a number: int number = 1234; Which would be the "best" way to convert this to a string: String stringNumber = "1234"; I have tried searching (googling) for an answer but no many …