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 |
What is concurrent hashmap and its features?
How to prevent to create multiple objects of a java class?
What does indexof mean?
How do you set security in applets?
What is private static in java?
How can you make a class serializable in java?
Why string is a class?
Can we sort arraylist in java?
What is static and final keyword in java?
How to call a Stored Procedure from JDBC?
take any 4 input numbers. like 2345.. wanted out put is All 16 combinations of the number 2345.. for example- taking input as 4565 output- 5654 4556 4655..
What are different types of states exist for a thread?