Câu hỏi phỏng vấn Java
Câu hỏi

What is RM...

Câu trả lời

Remote Method Invocation (RMI) is a Java API that enables the execution of methods on an object located in a different Java Virtual Machine (JVM). RMI is used primarily to build distributed applications, allowing objects to interact across different JVMs as if they were on the same machine. This capability is crucial for applications that need to perform operations where the objects are distributed across different servers or clients in a network.

RMI works by creating a stub (client-side proxy) and skeleton (server-side proxy) for the objects that are to be accessed remotely. The stub acts as a gateway, forwarding requests from the client to the remote server object, which is managed by the skeleton. This process involves marshalling (serializing) the request data on the client side and unmarshalling (deserializing) it on the server side, and vice versa for the server's response.

The RMI system uses a registry service, typically called the RMI registry, to locate remote objects. A server registers its remote objects with the registry, and clients look up these objects by name to obtain their stubs for remote method invocation.

RMI ensures type safety and supports the transmission of any object type that implements the java.io.Serializable...

senior

senior

Gợi ý câu hỏi phỏng vấn

junior

What are the Data Types supported by Java? What is Autoboxing and Unboxing?

junior

What is an Java Applet?

junior

What is Function Overriding and Overloading in Java?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào