What code optimizations techniques you follow in general
practice?

Answers were Sorted based on User's Feedback



What code optimizations techniques you follow in general practice?..

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

What code optimizations techniques you follow in general practice?..

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

Post New Answer

More Core Java Interview Questions

In C we use only compiler. Why java uses both compiler and interpreter? What is its significance?

5 Answers  


What is balanced tree in java?

0 Answers  


what is difference betweem home interface and remote interface?

0 Answers   CTS, HCL,


What is the implementation of destroy method in java. Is it native or java code?

0 Answers  


Can a class have multiple superclasses?

0 Answers  






What is substring 1 in java?

0 Answers  


What is jee6?

0 Answers  


What is an array and a vector? How they different from each other?

4 Answers  


How to instantiate member inner class?

0 Answers  


when there is a need of jvm then how we can say that java is a platform independent language?

3 Answers  


What do you mean by ternary operator in java?

0 Answers  


Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?

0 Answers  


Categories