Multiple choice technology programming languages

It is preferable to write List dogs = new ArrayList(); instead of List dogs = new ArrayList();

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Using raw types like List instead of parameterized generic types like List bypasses compile-time type safety checks. Therefore, it is false to say that writing the raw type version is preferable.