• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Mock Question on Protocols

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
So what is a correct ans for this question ??
Parag
 
Xie Ruchang
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Live ordinary life in an extraordinary way. Details embedded in this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic