27) What does the following paint() method draw: 1. public void paint(Graphics g) { 2. g.fillRect(20, 20, 50) 3. } a) A square with sides of 50 pixels each, placed 20 pixels from the x and y axis
b) This code will not compile.
c) A black square.
d) A square with sides of 20 pixels each, placed 50 pixels from the x and y axis.
Jason I think the code doesnot compile i.e it gives compile time error. In line 2 the trermination is missing ; and if it all u teminate it gives compile time error as wrong no of arguments for that method. check out in the java documentation for right number of arguments.
Forget this weirdo. You guys wanna see something really neat? I just have to take off my shoe .... (hint: it's a tiny ad)