Which protocol exhibits all of the following properties?
* A method-invocation protocol
* Can connect to many languages on many platforms
* Moves objects (state and behavior) as arguments
A. HTTP
B. HTTPS
C. JRMP
D. IIOP
The correct answer is C.
Explanation as follows
Neither HTTP nor HTTPS are method-invocation protocols so A and B must be wrong.
Both JRMP and IIOP can connect to legacy code created in a variety of languages, JRMP does so using JNI. However, IIOP moves state, but not behavior in method calls. JRMP can move whole objects including their behavior part. Therefore, C is the correct answer.
I think both the question and explanation do not make sense. JRMP and IIOP are protocols and what have protocol to do with programming languages? It is not JRMP that uses JNI, it is the
Java code that uses JNI and at the same time uses JRMP.
Appreciate comments please.