asked 181k views
3 votes
Which package is the Graphics class part of? _________________ .

a. javax.swing

b. java.swing

c. java.awt

d. javax.awt

e. java.graphics

asked
User Salini L
by
7.9k points

1 Answer

3 votes

Answer: C) java.awt

Step-by-step explanation:

Java.awt is commonly used in AWT (abstract window toolkit) which basically contain core graphics in AWT class. The java.awt is the important package in the AWT. It basically contain the main capabilities of the graphics and define the GUI ( graphical user interface) frame in the java platform.

It also support the event handling and also the event class like window and key event in the java.awt.

Therefore, option (C) is correct.