SóProvas


ID
1820545
Banca
CESPE / CEBRASPE
Órgão
MEC
Ano
2015
Provas
Disciplina
Programação
Assuntos

No que se refere ao Java 2 Platform Standard Edition Development, julgue o item que se segue.

Na programação em rede, Java fornece classes e interfaces nos pacotes java.rmi para RMI (remote method invocation) e nos pacotes org.omg para CORBA (common object request broker architecture).


Alternativas
Comentários
  • java.rmi: Provides the RMI package. RMI is Remote Method Invocation. It is a mechanism that enables an object on one Java virtual machine to invoke methods on an object in another Java virtual machine. Any object that can be invoked this way must implement the Remote interface. When such an object is invoked, its arguments are ``marshalled'' and sent from the local virtual machine to the remote one, where the arguments are ``unmarshalled.'' When the method terminates, the results are marshalled from the remote machine and sent to the caller's virtual machine. If the method invocation results in an exception being thrown, the exception is indicated to caller.

    SOURCE: https://docs.oracle.com/javase/7/docs/api/java/rmi/package-summary.html

     

    org.omg.CORBA: Provides the mapping of the OMG CORBA APIs to the JavaTM programming language, including the class ORB, which is implemented so that a programmer can use it as a fully-functional Object Request Broker (ORB).

    SOURCE: https://docs.oracle.com/javase/7/docs/api/org/omg/CORBA/package-summary.html

  • Alguém pode explicar por que essa questão está certa?

    O CESPE em 2014 cobrou esse mesmo assunto (https://www.qconcursos.com/questoes-de-concursos/questao/38bdbc5b-cb) e o gabarito marcou como alternativa errada.

    Bons estudos.

  • Ualison Aguiar, RMI não é baseado em CORBA.

    As questões estão cobrando coisas diferentes.