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 |
Why does java not support operator overloading?
Implementations of set interface?
what is Thread priority?
4 Answers Tech Mahindra, Wipro,
can two class in a code be public??if yes then how??
What are heterogeneous objects?
What is use of a abstract variable?
Describe OOP in java?
What is size_t?
Why put method is idempotent?
What is the purpose of a default constructor?
What do you mean by a JVM?
what is the context