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 an enumeration class?
what is the significance of listiterator in java?
What is member in java?
Why do we need singleton class?
Is java 9 released?
What is the gregoriancalendar class in java programming?
What are format specifiers in java?
When can we say that threads are not lightweight process in java?
Why null value is used in string?
What is the default size of set in java?
Can we use static class instead of singleton?
What Is Composition?