Pre-Test2

Home Useful Info 1 Pre-Test1 Project + Milestone 1 Sample Use Cases How to Install DukeBookStore Pre-Test2 JSDK Milestone 2 Final Milestone Announcements Running JSDK at Home Project Team Evaluation Project Information Form ODBC Data Source

Old Test Questions New Test Questions

 

Topics You Should Know for the Upcoming Test

Note: 1 book (textbook or a substitute), course notes, and labs/assignments are allowed. Be prepared!

Why Java? (know and understand the characteristics!)

OO Programming Using Java

final, static, etc.
Class/Object/Method/Constructor definitions
abstract methods
Interface, implementing interfaces
Inheritance
Encapsulation
Overloading vs. Overriding

Writing applets and event handlers in Java

Command-Line Arguments

Building GUI Java programs (know the major steps involved)

Servlets

Why servlets?

get and post and their doGet and doPost methods
getParameter, getParameterValues, etc.
HttpSession

JDBC

       loading driver

       getting a connection 

       preparing SQL statements

       running the query/update

       getting the results

XML

Why XML?

XML vs. HTML

well-formed vs. valid

DTD

Exam Questions/Format

  1. Give the __________________ Java characteristics, comment on ...
  2. Study the following code and answer the questions given below. ... What would the code produce when compiled and run? Explain.
  3. Given a class A, write a class B that inherit A, add the method C and override the method D.
  4. Study the following code and answer the questions given below. ... In general, what does the program do? Don’t give line-by-line analysis, give the overall effect.
  5. Compare and contrast___________ with respect to _____________ (e.g., Compare and contrast abstract classes and interfaces)
  6. an applet that ... Involves event-handling, something comparable to the ToDoWhat example.
  7. Given an HTML form, write a servlet that processes the form.
  8. Given a DTD and XML document, determine if the document is well-formed and/or valid.
  9. Using a session object, validate a user's access to ______
 

[Old Test Questions]

Click Here

[New Test Questions]

Click Here