Search Interview Questions | ![]() ![]() Click here and help us by providing the answer. ![]() Click Correct / Improve and please let us know. |
|
| ||||
Process - Interview Questions and Answers for 'Clean code' - 5 question(s) found - Order By Newest | ||||
| ||||
Ans. Modularity - First sign of good code is whether it has been segregated into methods and classes appropriately. I dont mind it in excess because I believe that is forward looking strategy as applications tends to expand and eventually become hard to read. Self Explanatory - Variables and methods should be named in a way that the code should be self explanatory even without comments. Use of Constant variables to explain use of literal. Proper Code Reuse - If there is anything being reused , it should be moved to parent classes / methods. Proper composition calls - Composed hierarchy should not be access in just single line. One or two levels is ok but having multiple levels make it hard to read and debug. | ||||
![]() | ||||
![]() ![]() ![]() ![]() ![]() ![]() | ||||
| ||||
Ans. Open ended Questions. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. Select the package -> Right Click -> Source -> Organize Imports. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. If there is a situation to remove duplicates values from an arrayList. Developer implemented using legacy for-loop where I suggested to use Linked hash set to remove duplicates from the list. | ||||
![]() | ||||
![]() ![]() ![]() ![]() | ||||
| ||||
Ans. https://www.evoketechnologies.com/blog/code-review-checklist-perform-effective-code-reviews/ | ||||
![]() | ||||
![]() ![]() ![]() ![]() | ||||