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

What is an enumeration class?

2 Answers  


what is the significance of listiterator in java?

0 Answers   IBS,


What is member in java?

0 Answers  


Why do we need singleton class?

0 Answers  


Is java 9 released?

0 Answers  






What is the gregoriancalendar class in java programming?

0 Answers  


What are format specifiers in java?

0 Answers  


When can we say that threads are not lightweight process in java?

0 Answers  


Why null value is used in string?

0 Answers  


What is the default size of set in java?

0 Answers  


Can we use static class instead of singleton?

0 Answers  


What Is Composition?

0 Answers   IBS,


Categories