First of all we will see what type of statement causes this error to occur. We all know that we cannot create object of type static as this cannot be instantiated and also we cannot declare a new keyword to create object and also we can't assign it to a variable by doing this.