Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 
avatar of user7

user7

user7 has asked 14 questions and find answers to 33 problems.

Stats

881
EtPoint
257
Vote count
14
questions
33
answers

About

A Software developer working in Java. I mainly come to StackOverflow to learn from others.

Some of my favourites (in no particular order)

Stack Overflow:

  1. Can (a==1 && a==2 && a==3) evaluate to true in Java?
  2. How does just-in-time compiler optimizes Java parallel streams? (related to above).
  3. Method reference to private interface method
  4. Why my string manipulation is slow using lambda expression?
  5. Default hashCode() implementation for Java Objects
  6. non-interference requirement on Java 8 streams (especially the comments on this answer)
  7. Should I always use a parallel stream when possible?
  8. What is more efficient: sorted stream or sorting a list?
  9. Why is Predicate<? super SomeClass> not applicable to Object?
  10. Why does array[idx++]+="a" increase idx once in Java 8 but twice in Java 9 and 10?
  11. How does a value in an entry in the WeakHashMap gets garbage collected when the actual object is garbage collected?
  12. Difference in behaviour of the ternary operator on JDK8 and JDK10
  13. Internal changes for limit and unordered stream
  14. When should streams be preferred over traditional loops for best performance? Do streams take advantage of branch-prediction?

Software Engineering:

  1. Java: Is it okay to abuse Spring beans (@Component) rather than use static final utility classes?
  2. When is it better to optimize a software for better performance, at the beginning or at the end of the development?

Awesome answers:

  1. Reversing a List via ListIterator
  2. Is it backwards-compatible to replace raw type like Collection with wildcard like Collection<?>?
  3. What is the use of inheriting object class methods in functional interface eg- toString, equals

Ah-has:

  1. Java "for" statement implementation prevents garbage collecting