About 51 results
Open links in new tab
  1. Reverse a string in Java - Stack Overflow

    I have "Hello World" kept in a String variable named hi. I need to print it, but reversed. How can I do this? I understand there is some kind of a function already built-in into Java that does th...

  2. What's the difference between map() and flatMap() methods in …

    Both map and flatMap can be applied to a Stream<T> and they both return a Stream<R>. The difference is that the map operation produces one output value for each input value, whereas …

  3. java - Static Binding and Dynamic Binding - Stack Overflow

    May 20, 2013 · I am really confused about dynamic binding and static binding. I have read that determining the type of an object at compile time is called static binding and determining it at …

  4. Static nested class in Java, why? - Stack Overflow

    Oct 1, 2012 · I was looking at the Java code for LinkedList and noticed that it made use of a static nested class, Entry.

  5. What is the difference between JDK and JRE? - Stack Overflow

    Dec 15, 2009 · Editors note: This question was asked in 2009 where the world was different. In 2022 the standard open sourced OpenJDK is JDK-only. What is the difference between JDK …

  6. What is the difference between Java components (JRE, JDK, JVM, …

    Mar 17, 2017 · You might have done so much of google to find the answer of this question and came across a very boring diagram showing the architecture and interrelation between JVM, …

  7. operators - Use of "instanceof" in Java - Stack Overflow

    What is the &#39;instanceof&#39; operator used for? I learned that Java has the instanceof operator. Can you elaborate where it is used and what are its advantages?

  8. Do I need to set java JDK path in user variables or system variables ...

    Aug 11, 2020 · Now I saw in javaTpoint tutorial that they were setting the path in user variables didn't create any JAVA_HOME variable. So my question is what is the difference between the …

  9. solve 8-puzzle problem using A* algorithm in java

    Apr 24, 2023 · I'm working on problem using the A* algorithm to solve a 8-puzzle problem in Java. The problem asks for the optimal solution for the following transmission: 0 1 3 4 2 ...

  10. Java wrapper classes - change value of parameters

    Oct 8, 2021 · I keep seeing the following when I look up why use wrapper classes: Objects are needed if we wish to modify the arguments passed into a method (because primitive types are …