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 prime number in java?

0 Answers  


Give a practical example of singleton class usage?

0 Answers  


What is general methodology?

0 Answers  


What does it mean that strings are immutable?

0 Answers  


Can we use different return types for methods when overridden?

0 Answers  






Can an interface have a constructor?

0 Answers  


What is the use of StringTokenizer class?

0 Answers   Hexaware, Virtusa,


What is command line used for?

0 Answers  


Whats the difference between notify() and notifyall()?

0 Answers  


What are the advantages of java over C++?

0 Answers  


When abstract methods are used?

1 Answers  


What about interthread communication and how it takes place in java?

0 Answers  


Categories