Are API Components in the aws package?

Asked

Viewed 55 times

-2

I have the following question. And yes, it contains "aws" instead of "awt", but I think the correct one would be "awt".

Are API Components in aws package?

I - Panel

II - Label

III - Windows

IV - Checkbox

V - Textfield


A - Just I

B - Only I, II, IV, V

C - Only I and II

D - Only I and IV

E - Only II and III

I believe the correct alternative would be B. But I’m not sure, and if so, why would it be?

  • AWS!? Or did you mean AWT?

  • https://docs.oracle.com/javase/9/docs/api/java/awt/package-summary.html

  • So... That’s what I thought tbm. But in the question came AWS. In case, if it was to be AWT would be the alternative B?

  • 1

    Furthermore, the components of AWT are dinosaurs that since the release of Java 1.2 in 1998 should not be used for anything else, being considered obsolete and have since been replaced by Swing components. It scares me that someone charges this kind of thing on a test.

  • Yes, because there is no component Windows, and yes Window.

  • Thanks Bro!!!

  • Taking advantage of the post...

  • In any application where the user’s actions should be interpreted when the user interacts with the window (click a button, move the mouse, for example) is it necessary? A - Modify the properties of a Jbutton B - Create a Jframe C class - Configure the way our form will be displayed on our computer D - Implement a Listener E interface - Change the Label property when passing with Mouse

  • D - This kind of thing you deal with ActionListener, MouseListener, etc..

  • Blz Mano,... Thanks

Show 5 more comments

1 answer

1


Whereas it was supposed to be AWT instead of AWS, let’s see:

That is, the statements I, II, IV and V are true and III is false. Therefore, the correct alternative is B.

I make an observation that the components of AWT are dinosaurs that since the launch of Java 1.2 in 1998 should not be used for anything else, being considered obsolete and having since been replaced by the components of Swing. It scares me that someone charges this kind of thing on a test.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.