When I write generic class in Java, I use below code

```
public ResizableArray() {
    this.count=0;
    this.elements = (T[]) new Object[0];
}

```

However I get a warning:

> 
> Type Safety: Unchecked Cast from Object[] to T[]
> 
> 
> 

Why do I get this warning?