What code optimizations techniques you follow in general
practice?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we convert list to set in java?

512


How do you use compareto method?

531


What is meant by data hiding/encapsulation?

574


What is a flag variable?

560


Is list ordered in java?

544






What is array length in java?

526


How does compareto work in java?

579


What are strings in physics?

547


How many types of memory areas are allocated by JVM in java?

597


How to sort elements in a parallel array in java?

508


What is a conditional equation?

562


Is jdk required on each machine to run a java program?

756


What is classes in java?

519


Can you achieve runtime polymorphism by data members?

589


What is the purpose of the strictfp keyword?

609