Multiple choice technology programming languages

What are the features of raw types?

  1. Can be used with Generic code

  2. Raw types take Type parameters

  3. Raw types must be cast to appropriate objects at runtime

  4. Type safety

Reveal answer Fill a bubble to check yourself
A,C Correct answer
Explanation

Raw types in Java are legacy generic types used without type parameters. They can interoperate with generic code (A is correct) and require explicit casting at runtime (C is correct). They do NOT take type parameters (B is incorrect - that's what makes them 'raw'), and they do NOT provide type safety (D is incorrect - raw types bypass generic type checking). Raw types exist mainly for backward compatibility with pre-Java 5 code.