File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Mock Question on Protocols Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Mock Question on Protocols" Watch "Mock Question on Protocols" New topic
Author

Mock Question on Protocols

Xie Ruchang
Ranch Hand

Joined: Dec 25, 2003
Posts: 160
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.
Poornachandran R
Ranch Hand

Joined: Sep 11, 2002
Posts: 47
You are correct to some extend! Because, there are some protocols, that can be used only from specific languages, for example JRMP. Again, this can be used by other languages, by doing some EXTRA work (configuring JNI with JVM). So, I think, the basic objective of the question is to check, whether we know this or not.
parag bharambe
Ranch Hand

Joined: Sep 01, 2000
Posts: 41
Hi,
So what is a correct ans for this question ??
Parag
Xie Ruchang
Ranch Hand

Joined: Dec 25, 2003
Posts: 160
Parag,
Basically, I think that the question is faulty. This is one frustration in preparing for SCEA Part 1. Depending on which mock test and book, they can give different answers.
Best Regards,
PS : Be exam-smart, stick to the suggested answer. This question is from Cade book.
 
GeeCON Prague 2014
 
subject: Mock Question on Protocols