private List<Manufacturer> productManufacturer = new LinkedList<Manufacturer>();
I am not able to understand why <> this symbol is here and Manufacturer inside it to define a LinkedList in Java.
private List<Manufacturer> productManufacturer = new LinkedList<Manufacturer>();
I am not able to understand why <> this symbol is here and Manufacturer inside it to define a LinkedList in Java.
Please read about generics
private List<Manufacturer> productManufacturer = new LinkedList<>();
Assuming Manufacturer is a java class/interface/enum type, the above line defines a List that can hold only objects of type Manufacturer or its subclass types