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

Are there structures in java?

636


What is java util hashmap?

611


What is string immutability?

633


What is http client in java?

605


How does compareto method work?

613






How do you empty a list in java?

653


Is null an object in java?

659


What is charat java?

616


what do you understand by the term string with respect to java?

631


What do you understand by overloading and overriding in java?

637


What is equals method in java?

623


What is var keyword ?

814


Name component subclasses that support painting in java programming?

728


What are default methods ?

673


What is a byte array?

704