3i Infotech Papers: Sample Questions 1174 - 1176 of 1245

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 1174

» Languages » Java

Essay Question▾

Describe in Detail

What is the main functionality of the remote reference layer?

Explanation

Define RMI logical view.

Define RMI Logical View.

Define RMI logical view.

  • Remote reference layer is a part of JAVA’s remote method invocation (RMI) protocol.

  • Used in both the RMI client and server and by the stub or skeleton protocol layer.

  • It uses the transport layer.

  • Handles the creation and management of remote object references.

  • Responsible for transport independent functioning of RMI, as a connection manager for object invocation.

  • Acts an interface between the skeleton layer and transport layer protocols.

Question number: 1175

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

What is the difference between the functions memmove () and memcpy ()?

Explanation

Differrence between memmove () and Memcpy ()

Differrence between memmove () and Memcpy ()

memmove

memcpy

Copies a specified number of bytes from one memory location to another even when there is overlap

Function is used to copy a specified number of bytes from one memory to another.

Overlap can happen on memmove ().

Overlapping memory cannot be used in memcpy ().

It should not be done in non-destructive way.

It should be done in non-destructive way.

Question number: 1176

» Languages » Java

Short Answer Question▾

Write in Short

What are streams?

Explanation

  • Basically two types of streams in java are input and output streams, and java 8 stream.
Two types of streams in java

Two Types of Streams in Java

Two types of streams in java

  • Used to perform input and output of 8-bit bytes.

  • There are many classes related to byte streams but the most frequently used classes are File Input Stream and File Output Stream.