Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

need help with these java questions 13. By default, the methods associated with

ID: 3823560 • Letter: N

Question

need help with these java questions

13.

By default, the methods associated with the Socket and ServerSocket classes in Java operate in a blocking mode. What does blocking mean in this context? How would non-blocking operations differ?

(This question is meant to require a short, 2-3 sentence, answer.)

19. In Java, how does object serialization differ from JavaBeans persistence?

20.

Order the steps of a server response to an RMI call

Question 20 options:

marshall and send the return data to the client stub

locate the remote object to be called

capture the return value or exception

call the desired method, passing it the parameters

23. true or false? Remote objects cannot be inserted into a HashSet because any method call on a remote object can result in a RemoteException being thrown, but the equals()and hashCode() methods are not allowed to throw exceptions.

marshall and send the return data to the client stub

locate the remote object to be called

capture the return value or exception

call the desired method, passing it the parameters

Explanation / Answer

13. Let us say we're trying to get data from the server using your socket program and when you send a request the control to do something a simple disconnect from server or connect to another server is not possible until the server starts sending atleast a single bit of data. This situation is called blocking mode. If you use an operation such as 'recv()' in non-block.. then it will write straightaway whatever it has been reading, if the read buffer has nothin in it then it says 'Operation would block'.

20. 2, 4, 3, 1