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

is there a separate stack for each thread in java? : Java thread

0 Answers  


Why do you canvas?

0 Answers  


What is canonical name in java?

0 Answers  


What are memory tables?

0 Answers   Aspiring Minds,


Explain the difference between static and dynamic binding in java?

0 Answers  






What is comparator in java?

0 Answers  


What's the purpose of using break in each case of switch statement?

0 Answers  


What about features of local inner class?

0 Answers  


Why string is immutable with example?

0 Answers  


What are the different types of multitasking?

0 Answers  


Explain public static void main(string args[]).

0 Answers  


What is indexof in java?

0 Answers  


Categories