Java Software Engineer Question:
Download Job Interview Questions and Answers PDF
Do you know what is the advantage of generic collection?
Answer:
They enable stronger type checks at compile time.
A Java compiler applies strong type checking to generic code, and issues errors if the code violates type safety. Fixing compile-time errors is easier than fixing runtime errors, which can be difficult to find.
A Java compiler applies strong type checking to generic code, and issues errors if the code violates type safety. Fixing compile-time errors is easier than fixing runtime errors, which can be difficult to find.
Download Java Software Engineer Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain me why doesn’t the following code generate a NullPointerException even when the instance is null? | Tell us what do you mean by aggregation? |