Examlex
Look at the following applet code:
1 import javax.swing.*;
2 import java.awt.*;
3 public class GraphicsTest extends JApplet
4 {
5 public void init()
6 {
7 getContentPane() .setBackground(Color.WHITE) ;
8 }
9 public void paint(Graphics g)
10 {
11 super.paint(g) ;
12 g.setColor(Color.YELLOW) ;
13 g.fillOval(100, 100, 50, 50) ;
14 g.setColor(Color.BLACK) ;
15 g.setFont(new Font("SansSerif", Font.BOLD, 35) ) ;
16 g.drawString("SLOW", 110, 110) ;
17 }
18 }
What shape will the oval have?
Diametral Pitch
A measure of tooth density in gear sets, representing the number of teeth per unit of pitch diameter.
Circular Pitch
In gear design, the distance measured along the pitch circle between corresponding points on adjacent teeth.
Root Diameter
The diameter of a gear or screw measured at the base of the teeth or threads, where the material is the thickest.
Bevel Gears
Gears with intersecting shafts and conically shaped teeth that are used to change the axis of rotation in machinery.
Q15: Some browsers do not directly support the
Q25: If numbers is a two-dimensional int array
Q25: What will be the value of x
Q27: Given that String[] str has been initialized,
Q33: Given the declaration double r;, which of
Q37: In the following statement, which is the
Q44: Which of the following is NOT a
Q51: Applets are important because the can be
Q51: All Java statements end with semicolons.
Q54: This is a basic window that has