{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

GrandDaddyQuizSol

GrandDaddyQuizSol - CS 391 Autumn 2007 2008 Roll Number...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 391 Autumn 2007 – 2008 Umair Javed Page 1 of 10 Roll Number SOLUTION Name ________________________ CS 391 Advanced Programming in Java Autumn 2007 Grand Daddy Quiz 40 minutes - 60 marks October 31, 2007 [Closed Books/Closed Notes/Open Mind] Good Luck ! SCOREBOARD Section 1 (15) 2 (25) 3 (20) Total (60) Marks
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
CS 391 Autumn 2007 – 2008 Umair Javed Page 2 of 10 Section I (15 Marks) 1. What interface must all interfaces for remote services extend? a) java.rmi.RemoteService b) java.rmi.Remotable c) java.rmi.server.Remote d) java.rmi.Remote 2. When defining a remote interface, what exception is typically thrown as part of each method signature? 3. From which of the following locations can an RMI server NOT load classes? 4. What is the name for the remote object proxy that is used by the client? 5. Which of the following would not locate the remote "Calculator" service on machine www.jguru.com (with an IP address is 216.217.9.172), where the standard RMI registry was used? a) Naming.lookup("rmi://www.jguru.com/Calculator"); b) Naming.lookup("rmi://216.217.9.172/Calculator"); c) Naming.lookup("rmi://www.jguru.com:1199/Calculator") ; d) Naming.lookup("www.jguru.com:1099/Calculator");
Background image of page 2
CS 391 Autumn 2007 – 2008 Umair Javed Page 3 of 10 6. What will be the result of compiling following code public class MyClass { final int i ; public static void main(String[] arguments) { System.out.println(new MyClass().i); } }
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}