Java (not to be confused with JavaScript or JScript or JS) is a general-purpose object-oriented programming language designed to be used in conjunction with the Java Virtual Machine (JVM). "Java platform" is the name for a computing system that has installed tools for developing and running Java programs. Use this tag for questions referring to the Java programming language or Java platform tools.
I use object != null a lot to avoid NullPointerException. What is an alternative to: if (someobject != null) {
If you have a java.io.InputStream object, how should you process that object and produce a String? Suppose I
I always thought Java uses pass-by-reference. However, I've seen a blog post that claims that Java uses p
If I run the following program, which parses two date strings referencing times 1 second apart and compares th
Here is a piece of C++ code that shows some very peculiar behavior. For some strange reason, sorting the data