What code optimizations techniques you follow in general
practice?
Answers were Sorted based on User's Feedback
Answer / meena
1. Elimination repeated sub-expressions.
2. Eliminating the dead- code.
3. Replacing multiplication and division by bit shift operators.
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / guest
Using Design Patterns Such as FlyWeight.
Use of static variables when-ever possible
using StringBuffer instead of String coz they are immutable
Using interfaces for reducing coupling
Avoiding creating new objects, reusing existing ones
| Is This Answer Correct ? | 2 Yes | 1 No |
What is the purpose of skeleton and stub?
How use .contains in java?
How to run a JAR file through command prompt?
What is constructor and virtual function? Can we call a virtual function in a constructor?
Does collectionutils isempty check for null?
how to make hashmap object as synchronized object?
how to handle exceptions in core applications?
What is the destroy method?
What is difference between jdk,jre and jvm?
What is palindrome in java?
what is method reference in java 8?
Is singleton set an interval?