3i Infotech Papers: Sample Questions 997 - 999 of 1245

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

Question number: 997

» Languages » Java

Essay Question▾

Describe in Detail

What is serialization?

Explanation

Understanding of serialization.

Understanding of Serialization.

Understanding of serialization.

  • Serialization is a mechanism of converting the state of an object into a type stream.

  • It is used in Hibernate, RMI, EJB and JMS technologies.

  • An object is thus represented as a sequence of bytes that includes the object’s data as well as information about the object’s type and the types of data stored in the object.

Advantages of java serialization:

Mainly used to send object’s state on the network.

Question number: 998

» Languages » Assembly Language

MCQ▾

Question

The status of the Kernel is

Choices

Choice (4) Response

a.

task

b.

not defined.

c.

process

d.

All of the above

Answer

c.

Explanation

Defined place of kernel.

Defined Place of Kernel.

Defined place of kernel.

  • The status of the Kernel is process.

  • The operator enters a DISPLAY OMVS command to display the status of the kernel and processes.

  • The operator enters the DISPLAY TRACE, COMP = SYSOMVS command to display the status of the kernel trace.

  • A shell user enters the PS command or the PS ISHELL command to display the status of the user’s processes.

  • A superuser enters the PS command or the PS ISHELL command to display the status of all processes.

Question number: 999

» Languages » Java

True-False▾

Question

Is the Following Statement True or False?

Final variables should be declared in the beginning?

Answer

TRUE

Explanation

  • True, final prevents modification of variable, but those have to be initialized at some point- constructor is the right place.

  • Value of a final variable can only be set once- constructor can guarantee this.

  • Constructor is called once for an object while other methods can be called any number of times.

  • A “blank final” instance variable of a class must be definitely assigned at the end of every constructor of the class in which it is declared.

  • A “blank final static” variable must be definitely assigned in a static initializer of the class.