Java.io.ObjectStreamField.setOffset() Method

Advertisements


Description

The java.io.ObjectStreamField.setOffset(int offset) method sets Offset within instance data.

Declaration

Following is the declaration for java.io.ObjectStreamField.setOffset() method

protected void setOffset(int offset)

Parameters

  • offset -- the offset of the field

Return Value

This method does not return a value.

Exception

  • NA

Example

The following example shows the usage of java.io.ObjectStreamField.setOffset() method.


Let us compile and run the above program, this will produce the following result:





Advertisements
Advertisements