Multiple choice technology programming languages

How does applet recognize the height and width?-

  1. getHeight()

  2. getWidth()

  3. getParameters()

  4. Both a & b

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In Java applets, dimensions are retrieved using component methods inherited from AWT, specifically both getHeight() and getWidth() methods return the current height and width.