Basics of Applets and Servlets
Description: Test your knowledgewith basics of Applets and Servlets | |
Number of Questions: 15 | |
Created by: Aliensbrain Bot | |
Tags: Java Programming Applets |
In the following Java program, it was found that these statements have generated an exception of Array Index out of bound Exception.
int b[ ] = {10,20,30};
b[50] = 100 ;
Choose the correct catch statement for the above code.
Which of the following attributes of an Applet class specifies the path of the class file?
Which of the following methods in a SmashTransition class is used to modify the work_pixels array for the next cell in Java?
________ class provides functionality that can be used while writing BeanInfo classes.
For what purpose is the given JAVA statement required? horiz1.add(Box.createHorizontalbox();
Which of the following specific codes does a web server send using its HTML page to a client server?
when we call repaint() method for a component, the AWT calls the method:
What is the virtual machine that a web browser contains at the client side called?
Which of the following interfaces in java.beans package allows a designer to provide a graphical user interface through which a bean may be configured?
Which of the following adjustment events of scroll bar is used to generate an absolute event?
Which of the following parameters in applet tag specifies the number of milliseconds between each billboard?
Which of the classes in java.awt package supports automated testing of AWT based applications?
Which of the following classes in Java is used to encapsulate a combo box in an applet program?
What will be the output of the following code?
class Apple {
protected int i = 20;
}
class Banana extends Apple {
void show() {
System.out.println(i);
}
}
class Cat extends Banana {
void disp() {
System.out.println(i); //i is also available here
}
}
public class Fruit {
public static void main(String[] args) {
Cat c = new Cat();
c.disp();
}
}
What will be the output of the following statement?
g.fillRect(40,40,200,20);