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 Java 8?

    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 the flatMap …

  3. Correct way to trim a string in Java - Stack Overflow

    String input = " some Thing "; System.out.println("before->>"+input+"<<-"); System.out.println("after->>"+input.trim()+"<<-"); If it is a string that should be trimmed for all usages, trim it up front like you …

  4. 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 runtime …

  5. 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.

  6. 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 and JRE? What …

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

    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, JRE and …

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

  9. What is the difference between JVM, JDK, JRE & OpenJDK?

    Jul 19, 2012 · JVM is the Java Virtual Machine – it actually runs Java ByteCode. JRE is the Java Runtime Environment – it contains a JVM, among other things, and is what you need to run a Java …

  10. 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 set path in …