Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Thread or Parts of A Program?: Question Insights

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

1 Which of these functions is called to display the output of an applet?

paint()

display()

displayApplet()

PrintApplet()
2 Which of these methods can be used to output a string in an applet?

drawString()

display()

print()

transient()

3 What does AWT stands for?

Abstract Window Toolkit

All Writing Tools

All Window Tools

Abstract Writing Toolkit

4 Which of these methods is a part of Abstract Window Toolkit (AWT) ?

paint()

display()

drawString()

transient()

5 Which of these modifiers can be used for a variable so that it can be accessed from any
thread or parts of a program?

volatile

transient

global

No modifier is needed
6 Which of these operators can be used to get run time information about an object?

instanceof

Info

getInfo

getinfoof
Question Insights »
7 In Servlet Terminology what provides runtime environment for JavaEE (j2ee) applications.
It performs many operations that are given below: 1. Life Cycle Management 2.
Multithreaded support 3. Object Pooling 4. Security etc.

C ontainer

Webserver

Server

Application Server
8 An applet can play an audio file represented by the AudioClip interface in the java, applet
package Causes the audio clip to replay continually in which method?

public void loop()

public void play()

public void stop()

None of these
9 Which are the common security restrictions in applets?

Both Applets can't load libraries or define native methods and An applet can't read every system property

An applet can't read every system property

Applets can't load libraries or define native methods

None of these
10 From the following statements which is a drawback for Applet?

Plugin is required at client browser to execute applet

It can be executed by browsers running under many platforms, including Linux, Windows, and Mac Os
etc.

Secured

It works at client side so less response time


11.What invokes immediately after the start() method and also any time the applet needs
to repaint itself in the browser?

paint()

init()

stop()

destroy()

You might also like