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

What are static methods?

574


Does importing a package imports its sub-packages as well in java?

550


What is the difference between size and length in java?

506


What is integer size in java?

505


What package is math in java?

530






what is synchronization? : Java thread

561


How can the checkbox class be used to create a radio button?

503


What does isempty () do in java?

597


Why do we need singleton?

535


Realized?

1656


Enlist few advantages of inheritance?

580


What do you understand by garbage collection in Java? Can it be forced to run?

550


Can an object be null?

543


How do constructors use this() and super()?

542


What do you understand by java virtual machine?

703