Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Java - Interview Questions and Answers|
|This question can be asked in different variants like performace improvement of an application, improving performance for DB communication etc.|
|Ans. This depends on entirely upon the code type. For example |
1.If its just logic, we can try it to short circuit or put the if / switch case with maximum probability in the beginning.
2. Can use faster data structures, for eg - random retrieval instead of sequence / iterator
3. Working with primitive types or even bytes instead of Objects, even though it may result in marginal improvement.
4. If its service call, then service call with bulk load can help
5. If DB Operation, then with use of Indices , Views or using ORM , cache etc.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  performance improvement  code optimization Asked in 1 Companies|
|What things you would care about to improve the performance of Application if its identified that its DB communication that needs to be improved ?|