Given the following method in the Dice class,  Modifier…

Given the following method in the Dice class,  Modifier and Type Method and Description void roll() stores a random number in the range 1-6 in each of the instance variables   and   Dice theDice = new Dice();   Explain why the following statement produces a syntax error.   System.out.println(theDice.roll());