5,238 reputation
42049
bio website
location
age
visits member for 2 years, 5 months
seen 14 hours ago

Dec
12
answered Should CountDownLatch be used for waiting for an event?
Dec
1
awarded  Notable Question
Nov
24
comment Did Java avoid multiple inheritance here?
@overexchange Being final does not mean that the object is not mutable; just that the reference to an object cannot be changed to point to another object, but the referring object can be mutable. I recommend learning Java 8 because introduces neat concepts which boost productivity. More interesting than default methods are lambda expressions and Streams API.
Nov
23
answered Did Java avoid multiple inheritance here?
Nov
23
comment Did Java avoid multiple inheritance here?
@raptortech97 Actually the above code will compile using a Java 8 compiler.
Nov
20
awarded  Favorite Question
Nov
14
answered Duplicate method in spring services, how to refactor?
Nov
13
comment Returning null or a empty value/throw exception?
@yegor256 The standard solution since Java 8 is using Optional; other languages have this.
Nov
12
reviewed Approve What did people do before templates in C++?
Nov
6
revised At what point should you collapse many parameters into (e.g.) struct to improve readability in function headers?
added 175 characters in body
Nov
6
answered At what point should you collapse many parameters into (e.g.) struct to improve readability in function headers?
Nov
6
comment Which package should unrelated classes belong to in Java?
@Snowman Although I get your point, there are plenty of use cases where purely OOP cannot be achieved like for example actions on whole Collections but depending on elements types, operations with callbacks etc.
Nov
6
comment Which package should unrelated classes belong to in Java?
There are plenty of *Utils or *s classes just with static methods in the libraries: in JDK: Objects, Collections, Executors etc.; in Spring: RefelectionUtils, ClassUtils etc.
Nov
6
comment Which package should unrelated classes belong to in Java?
@Snowman I strongly disagree; most libraries have such packages: JDK - java.util.*, Spring Core - org.springframework.util.*, Guava - com.google.common.util.*.
Nov
6
answered Which package should unrelated classes belong to in Java?
Nov
2
revised Does code format affect performance?
edited body; edited title
Oct
28
answered Algorithm to create custom ConcurrentHashMap?
Oct
21
answered CopyOnWriteArrayList: Why do we have to make a full copy of source data?
Oct
12
comment Why were Java collections implemented with “optional methods” in the interface?
There was a C++ STL 'porting' to Java. But it was 5 times bigger in class count. With this mind I don't buy it that the larger one is more consistent and usable. docs.oracle.com/javase/6/docs/technotes/guides/collections/…
Oct
10
reviewed Approve Exceptions: Why throw early? Why catch late?