Languages-Java [3i Infotech Placement]: Sample Questions 93 - 95 of 141

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 93

Edit

Write in Short

Short Answer▾

Can you run the product development on all operating systems?

Explanation

  • No we can not run the product development on all operating systems.
  • It is formatted differently on different operating systems and only supports operating systems running off the central operating system that it was built to support.

Question 94

Edit

Write in Short

Short Answer▾

How this () is used with constructors?

Explanation

  • This () is used to invoke a constructor of the same class.
  • Used to call the constructor before using the functionality of method.

Example:

void getValue ()

{

this () ;

Question 95

Edit

Describe in Detail

Essay▾

What is serializable interface?

Explanation

Understanding of Serialization or De-Serialization
  • Serializing an object converts its state to a byte stream. Byte stream can be reverted into a copy of the object.
  • A java object is serializable if its class or any of its super classes is serializable- classes that do not implement this interface will not have any of their state serialized or desterilized.
  • The serialization interface has no methods or fields and serves only to identify the semantics of being serializable.
  • It provides mechanism of writing the state of an object into a byte stream.
  • Used in hibernate, RMI, JPA, EJB and JMS technologies.

Developed by: