[Resolved] Cannot instantiate the type Listin java | Eclipse | Compile time error – 2022

Issue: I’m facing compile time error “Cannot instantiate the type List” while creating list object. Reason: As we are creating instance for interface, it is not allowed in java. Interfaces cannot be instantiated. That means we are trying to create instance for List interface. Solution: We can use implementation Classes to create instances. Example we …

[Resolved] Cannot instantiate the type Listin java | Eclipse | Compile time error – 2022 Read More »