When should extends be used instead of instantiating a class?
1099
Prefer composition over inheritance?
150519
When should you use a local class in Java?
21739
When to use abstract classes?
33679
Why should the interface for a Java class be preferred?
4255
"implements Runnable" vs "extends Thread" in Java
5204
What is a good use case for static import of methods?
77161
Why would you use a class method constructor versus alloc/init?
60540
Should I instantiate instance variables on declaration or in the constructor?
99914
Using properties instead of fields in class methods of the same unit is a bad practice?
7673
Auto-implemented getters and setters vs. public fields
87220
How do I programmatically compile and instantiate a Java class?
36346
When to use generic methods and when to use wild-card?
134329
Can you use a string to instantiate a class?
134042
Why do many Collection classes in Java extend the abstract class and implement the interface as well?
84951
can I reflectively instantiate a generic type in java?
2967
Default constructors and inheritance in Java
41842
Is it possible to avoid repeating the class name in the implementation file?