Chris Pollett >
Old Classes >
PIC20B

   ( Print View )

Enrollment info

Course Info: Homework Assignments: Practice Exams: PIC:
                            












PIC 20B Practice Final

The final is June 11, 3-6pm.

For the actual final please bring photo ID. One of the problems
below will be on the actual final.

1. Explain the difference between <%! ... %>, <%= ... %>, <%@ ... %>
   tags in JSP.

2. Explain what the Java line Class.forName("Bob"); does.

3. Give the Java syntax for opening a connection to an Access database with
   DSN Bob. Then performing the insert
   INSERT INTO BodyParts VALUES ( 'Stomach','organ')
   followed by closing the connection.

4. Suppose we want to have an RMI server for the method int getQuote()
   which returns the stock quote for some internet company. Write an
   RMI interface which could be used by the server and client.

5. Redo problem 4 but with a CORBA IDL.

6. Give the Java code necessary to create a JEditorPane school and open
   the URL www.math.ucla.edu in it.

7. Give the Java code necessary to send a DatagramPacket containing the
   string "Hey, hey we're the Monkees" to port 1234 of the machine
   monkees.fans.com.

8. Redo problem 7 but this time assume there is a ServerSocket at
   monkees.fans.com listening to port 1234 and send the data using a stream
   socket.

9. Write a short servlet which prints out all the name value that have been
   Posted to it.

10. Explain what the command rmic, rmiregistry, and idltojava do and are for.