Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
  • salvin francis
  • Frits Walraven
  • Piet Souris

What is the Types for RMI/IIOP?

Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the Types for RMI/IIOP? It includes primitive type, Serializable type, and what else??
Cowgirl and Author
Posts: 1589
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy folks,
I'm back again for a little while
There's a slight difference between RMI and RMI/IIOP, but for the purposes of the exam, anything that is considered an RMI type is all you need to know. You do not need to understand the subtle differences between RMI and RMI/IIOP types.
The types are primitives, Serializables, Remote objects, an array of any of those things, and a Collection of Serializable or Remote objects EVEN if the Collection interface is not itself Serializable, as long as the Collection implementation is in fact Serializable (and most, although not ALL, are).
So, basically the only things that are not valid types are non-Serializable *objects*. But one bad apple spoils the rest of the collection, so if you have an array or Collection of objects, ALL the objects must be Serializable or references to Remote objects (which means a Serializable stub will be substituted).
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic