When I am coding in my comfort zone using my favorite IDE, I prefer writing generic Java code. Arguably, this makes coding a little more cumbersome. For instance, instead of using relational operators directly, one must use them via the compareTo
method. This perhaps takes more time to actually code a solution and may confuse us while doing the whiteboard session. Practice may help, but still, it appears that leaving generics alone when the solution does not warrant their use is a better strategy (than to use them). But in a competitive environment, some interviewers may hold the non-generic implementation against a candidate (e.g. they may think that “the candidate does not appear to have strong Java coding skills”).
Do the authors of EPI have any advice about how to handle this so as to minimize its impact on one’s overall assessment?
Thanks!