Respuesta :

Answer:

Option A is the correct answer for the above question.

Explanation:

  • When the user wants to create a window application in java, He can create with the help of Java swing and AWT library of java. It gives the features to create a window application.
  • So when a user creates a frame or window with the help of frame or window class, then he needs to set the size of the frame and window which he can set by the help of setSize() function.
  • This function takes two argument weight and height like "setSize(int width, int height)", which is called by the object of window or frame class.
  • The above question wants to ask about the function which is used to set the width and height as 100 and 200 pixels. This can be set by the help of setSize() function which is written as setSize(100,200). This is stated from option A. Hence A is the correct while the other is not because they are not the right syntax.