Professional Documents
Culture Documents
JavaP2 Theory Stud
JavaP2 Theory Stud
JavaP2 Theory Stud
Session 34 – Networking
1) Which constructor of the ServerSocket class creates a server socket an the specified
port with a queue length of 50?
a) ServerSocket(int port)
b) ServerSocket(int port,int maxQueue)
c) ServerSocket(int port,int MaxQueue,InetAddress localAddress)
2) Which of the following is a general purpose class for accessing the attributes of
resource?
a) URL Connection
b) URL Encoder
c) URL
3) The _____, and_______, and_______ classes are for use with UDP (choose 3)
a) DatagramPacket
b) DatagramSocket
c) MulticastSocket
d) ServerSocket
Session 36 – RMI
1) Which three of the following are classes of Java.rmi package?
a) Naming
b) MarshalledObject
c) RMISecurityManager
d) Remote
2) The bind() and rebind() method belongs to which class of the java.rmi package.
a) Naming class
b) RMISecurityManager class
c) RMIloader class
3) What will marshall and unmarshall your object? (choose 2)
a) Sub
b) Skeleton
c) Client
d) Server
4) Which of the following statements are true with reference to RMI ?
1. RMI is language independent.
2. RMI is platform independent.
a) Only Statement 1 is true.
b) Only Statement 2 is true.
c) Both the statements are true.
d) Both the statements are false.
5) _______ classs is a sub-class of RemoteObject in Java RMI.
a) RemoteServer
b) Operation
c) LogStream
d) MarshalledObject
10/ The ______ consists of names across all cells within an enterprise
a) Directory services
b) Security services
c) Remote services
11/ The _______ method of the ActivationDesc class returns the object containing
serialized informaion
a) getData()
b) getGroupData()
c) getRestartModel()
16/ Which of the following classes in java.lang.reflect package contains integer constants
and static methods?
a) Constructors
b) Modifiers
c) Members
d) Arrays