MCQOPTIONS
Saved Bookmarks
This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your Java (MCQ) questions and answers knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which method is used to suspend threads that don t need to run when the applet is not visible? |
| A. | destroy() |
| B. | paint() |
| C. | stop() |
| D. | start() |
| Answer» D. start() | |
| 2. |
In Servlet Terminology what provides runtime environment for JavaEE (j2ee) applications. It performs many operations that are given below:1. Life Cycle Management2. Multithreaded support3. Object Pooling4. Security etc. |
| A. | Server |
| B. | Webserver |
| C. | Container |
| D. | Application Server |
| Answer» D. Application Server | |
| 3. |
The following example shows the creation of a import java.applet.*;import java.awt.*;public class Main extends Applet{public void paint(Graphics g){g.drawString("Welcome in Java Applet.",40,20);}} |
| A. | Banner using Applet |
| B. | Basic Applet |
| C. | Display clock |
| D. | None of the above |
| Answer» C. Display clock | |