Sun Certified Java Programmer (SCJP)

FREE Sun Certified Java Programmer Basic Questions and Answers

0%

Which of the java.awt.Graphics class's following methods would be used to draw the outline of a rectangle in a single method call?

Please select 2 correct answers

Correct! Wrong!

Only one of the five Component methods listed below is also a method of the class MenuItem. Which one?

Correct! Wrong!

Which one or ones of the following AWT classes are in charge of carrying out the components layout?

Please select 2 correct answers

Correct! Wrong!

Which of the following best describes the order in which a component is redrawn as a result of method calls?

Correct! Wrong!

If comp is a __________, the Container methods add(Component comp) and add(String name, Component comp) will raise an IllegalArgumentException.

Please select 2 correct answers

Correct! Wrong!

If a component needs to resize vertically but not horizontally, it should go in a:

Correct! Wrong!

The following class(es)' methods can be used to create directories:

Correct! Wrong!

A directory can be created using a method from the java.io.File class in Java.
The java.io.File class provides several methods for file and directory operations, including directory creation. To create a directory, you can use the mkdir() or mkdirs() method of the File class.