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 |
In C we use only compiler. Why java uses both compiler and interpreter? What is its significance?
What is balanced tree in java?
what is difference betweem home interface and remote interface?
What is the implementation of destroy method in java. Is it native or java code?
Can a class have multiple superclasses?
What is substring 1 in java?
What is jee6?
What is an array and a vector? How they different from each other?
How to instantiate member inner class?
when there is a need of jvm then how we can say that java is a platform independent language?
What do you mean by ternary operator in java?
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?