JAVA - Programming Online Tests

Java: Basic Test 9

Question 1: A class defines the structure and behavior (data and code) that will be shared by a set of objects ...

62 Comments. 864 views since Jan 19, 2009

Java: Basic Test 1

Question 1: Thread class is defined in the package ______ ...

39 Comments. 567 views since Sep 30, 2008

Java Programming: Servlet

Question 1: Which is an abstraction that either produces or consumes information. ...

18 Comments. 394 views since Sep 11, 2008

Java: Basic Test 3

Question 1: The class that inherits is called a ...

16 Comments. 284 views since Sep 30, 2008

JSP: Test 2

Question 1: JSP simply puts java inside ...

20 Comments. 226 views since Jan 19, 2009

JDBC: Test 1

Question 1: Which of the statement below does not correctly defines the difference between JDBC and ODBC ? ...

16 Comments. 175 views since Oct 15, 2008

Advance Java: Test 1

Question 1: What output is displayed as the result of executing the following statement? System.out.println("// Looks like a comment."); // Looks like a comment ...

8 Comments. 145 views since Sep 30, 2008

Java: Test 11

Question 1: You would use the ____ operator to create a single instance of a named class. ...

12 Comments. 143 views since Oct 23, 2008

Java Server Pages

Question 1: What is the role played by JSP in the MVC architecture ...

9 Comments. 132 views since Sep 22, 2008

JSP: Test 1

Question 1: Which tag in the jsp is used to define the error page? ...

4 Comments. 127 views since Oct 20, 2008

Java: Miscellaneous

Question 1: finalize() method works for.......... ...

11 Comments. 110 views since Aug 9, 2008

Java: Basic Test 2

Question 1: The content pane is the main container in JApplet, JDialog, and JFrame objects ...

3 Comments. 105 views since Sep 30, 2008

Java: Classes

Question 1: Any concept you wish to implement in a Java program must be encapsulated within a class ? ...

11 Comments. 102 views since Oct 20, 2008

JDBC: Test 2

Question 1: Which of the statement below does not correctly defines the difference between JDBC and ODBC ? ...

3 Comments. 101 views since Oct 20, 2008

Java: Test 10

Question 1: What is meant by timeslicing or time sharing? ...

8 Comments. 100 views since Oct 20, 2008

Java: Basic Test 8

Question 1: Java is a Programming Language ...

2 Comments. 87 views since Oct 16, 2008

Java: Test 12

Question 1: Declaration of methods as final results in faster execution of the program? ...

1 Comments. 86 views since Oct 23, 2008

Advanced Java: Test 3

Question 1: What is byte code in the context of Java? ...

2 Comments. 85 views since Sep 30, 2008

Java: Basic Test 4

Question 1: Which of the following denote methods of HttpServlet class ...

7 Comments. 83 views since Sep 16, 2008

Java: Basic Test 5

Question 1: Choose the correct statement ...

2 Comments. 77 views since Sep 18, 2008

Advance Java: Test 2

Question 1: Consider public class MyClass{ public MyClass(){/*code*/} // more code... } To instantiate MyClass, you would write? ...

4 Comments. 76 views since Sep 30, 2008

Java: Basic Test 7

Question 1: Which of the following object is received when a servlet accepts call from client? ...

1 Comments. 72 views since Sep 30, 2008

Java: Test 13

Question 1: Which of the following is not a primitive data type? ...

4 Comments. 71 views since Mar 10, 2011

Fundamentals of Programming Servlet

Question 1: You are writing an error-handling routine to test for run-time errors in a procedure. At the end of the procedure, you want to reset all the properties of the Err object. Which of the following is the best technique? ...

0 Comments. 63 views since Jan 29, 2011

Java: Basic Test 6

Question 1: What is the initial contact point for handling a web request in a Page-Centric architecture? ...

5 Comments. 63 views since Sep 30, 2008

Java: Test 9

Question 1: What are the two types of multitasking? 1. Process-based 2. Thread-based ...

5 Comments. 61 views since Oct 20, 2008

AWT: Controls Test 2

Question 1: If a frame uses a Grid layout manager and does not contain any panels, then all the components within the frame are the same width and height ...

0 Comments. 45 views since Mar 6, 2009

Java: Swing

Question 1: Which of the following methods are invoked by the AWT to support paint and repaint operations? ...

3 Comments. 40 views since Sep 22, 2008

Java: Applet

Question 1: In the following classes which one is used to proved a compact,multiple-choice scrolling selection list. ...

6 Comments. 39 views since Sep 11, 2008

Event handling

Question 1: The event delegation model, introduced in release 1.1 of the JDK, is fully compatible with the event model. ...

4 Comments. 29 views since Mar 5, 2009

Java: AWT Components

Question 1: A Frame’s background color is set to Color.Yellow, and a Button’s background color is to Color.Blue. Suppose the Button is added to a Panel, which is added to the Frame. What background color will be used with the Panel ? ...

2 Comments. 22 views since Oct 20, 2008

AWT Components

Question 1: A Frame’s background color is set to Color.Yellow, and a Button’s background color is to Color.Blue. Suppose the Button is added to a Panel, which is added to the Frame. What background color will be used with the Panel? ...

2 Comments. 19 views since Mar 4, 2009

AWT: Controls

Question 1: You want to construct a text area that is 80 character - widths wide and 10 character - heights tall. What code do you use ...

2 Comments. 18 views since Mar 5, 2009

AWT:Windows,Graphics and Fonts

Question 1: How would you set the color of a graphics context called g to cyan? ...

1 Comments. 14 views since Mar 4, 2009

Java: Graphics & Fonts

Question 1: How would you set the color of a graphics context called g to cyan ? ...

0 Comments. 14 views since Oct 20, 2008