java (39,207)

Sort By: New Votes
  1. Why does List.addAll of a reversed subList of the list cause a ConcurrentModificationException
  2. Why does allocating a single 2D array take longer than a loop allocating multiple 1D arrays of the same total size and shape?
  3. Race condition interview question: Min and Max range of an integer
  4. Does the 'java' command compile Java programs?
  5. Inheritance at package visibility in Java
  6. Why can't we use uninitialized local variable to access static content from type of that variable?
  7. Should I pre-initialize a variable that is overwritten in multiple branches?
  8. Retrieving list of employees with lowest salary using stream
  9. In a hashmap, the addition of a new element to the internal linked list of a bucket is always at the end. Why?
  10. Can we get a method name using java.util.function?
  11. Idea unable import maven project
  12. Why do C and Java round floats differently?
  13. Java Optional and orElse
  14. Why does this method call on a null object run without a NullPointerException?
  15. How to map elements to their index using streams?
  16. How many String objects would be created when concatenating multiple Strings?
  17. Does== actually work the same or different when comparing two primitives vs two Objects in Java?
  18. Execution order of f1()+f2()*f3() expression and operator precedence in JLS
  19. Maintain an ArrayList of unique arrays in java
  20. Setting a variable back to zero
  21. OSGi: What's the difference between Import-Package/Export-Package and Require-Capability/Provide Capability?
  22. Is SecureRandom.ints() secure?
  23. Why is the number of local variables used in a Java bytecode method not the most economical?
  24. How to tell if JDK is available from within running JVM?