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 ...

125 Comments. 1747 views since Jan 19, 2009

Java: Basic Test 1

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

65 Comments. 1151 views since Sep 30, 2008

Java Programming: Servlet

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

27 Comments. 667 views since Sep 11, 2008

Java: Basic Test 3

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

17 Comments. 494 views since Sep 30, 2008

JSP: Test 2

Question 1: JSP simply puts java inside ...

29 Comments. 398 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 ? ...

21 Comments. 268 views since Oct 15, 2008

Java: Test 11

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

15 Comments. 263 views since Oct 23, 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 ...

18 Comments. 253 views since Sep 30, 2008

Java Server Pages

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

14 Comments. 217 views since Sep 22, 2008

Java: Basic Test 2

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

4 Comments. 210 views since Sep 30, 2008

JSP: Test 1

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

5 Comments. 207 views since Oct 20, 2008

Java: Classes

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

11 Comments. 194 views since Oct 20, 2008

Java: Test 10

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

9 Comments. 180 views since Oct 20, 2008

Java: Basic Test 8

Question 1: Java is a Programming Language ...

5 Comments. 172 views since Oct 16, 2008

Java: Miscellaneous

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

14 Comments. 170 views since Aug 9, 2008

Java: Basic Test 4

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

9 Comments. 157 views since Sep 17, 2008

Advanced Java: Test 3

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

3 Comments. 155 views since Sep 30, 2008

JDBC: Test 2

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

5 Comments. 151 views since Oct 20, 2008

Java: Test 12

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

1 Comments. 144 views since Oct 23, 2008

Java: Test 13

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

9 Comments. 142 views since Mar 11, 2011

Java: Basic Test 7

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

4 Comments. 140 views since Sep 30, 2008

Java: Basic Test 5

Question 1: Choose the correct statement ...

3 Comments. 137 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? ...

8 Comments. 132 views since Sep 30, 2008

Java: Basic Test 6

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

6 Comments. 125 views since Sep 30, 2008

Java: Test 9

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

7 Comments. 117 views since Oct 20, 2008

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? ...

2 Comments. 105 views since Jan 30, 2011

Java: Swing

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

3 Comments. 78 views since Sep 22, 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 ...

1 Comments. 62 views since Mar 7, 2009

Java: Applet

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

8 Comments. 61 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. ...

5 Comments. 50 views since Mar 6, 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. 37 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? ...

3 Comments. 31 views since Mar 5, 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 ...

3 Comments. 31 views since Mar 6, 2009

Java: Graphics & Fonts

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

0 Comments. 25 views since Oct 20, 2008

AWT:Windows,Graphics and Fonts

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

1 Comments. 24 views since Mar 4, 2009