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 |
Can an abstract class be a final class?
If you are reviewing the code of your team members, what points will you look at, assuming the performance of the application is not so great
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?
What is the difference between abstract class and interface1? What is an interface?
What purpose do the keywords final, finally, and finalize fulfill?
Can we extend the String class?
When can an object reference be cast to an interface reference in java programming?
methods in Applet?
What is a method vs function?
What are the main features of java?
what is business delegate?
What do you mean by collectors in java 8?