পৃষ্ঠাসমূহ

Search Your Article

CS

 

Welcome to GoogleDG – your one-stop destination for free learning resources, guides, and digital tools.

At GoogleDG, we believe that knowledge should be accessible to everyone. Our mission is to provide readers with valuable ebooks, tutorials, and tech-related content that makes learning easier, faster, and more enjoyable.

What We Offer:

  • 📘 Free & Helpful Ebooks – covering education, technology, self-development, and more.

  • 💻 Step-by-Step Tutorials – practical guides on digital tools, apps, and software.

  • 🌐 Tech Updates & Tips – simplified information to keep you informed in the fast-changing digital world.

  • 🎯 Learning Support – resources designed to support students, professionals, and lifelong learners.

    Latest world News 

     

Our Vision

To create a digital knowledge hub where anyone, from beginners to advanced learners, can find trustworthy resources and grow their skills.

Why Choose Us?

✔ Simple explanations of complex topics
✔ 100% free access to resources
✔ Regularly updated content
✔ A community that values knowledge sharing

We are continuously working to expand our content library and provide readers with the most useful and relevant digital learning materials.

📩 If you’d like to connect, share feedback, or suggest topics, feel free to reach us through the Contact page.

Pageviews

Wednesday, January 18, 2017

Java.io.ObjectStreamField Class

Introduction

The Java.io.ObjectStreamField class is a description of a Serializable field from a Serializable class. An array of ObjectStreamFields is used to declare the Serializable fields of a class.

Class declaration

Following is the declaration for Java.io.ObjectStreamField class:
public class ObjectStreamField
  extends Object
    implements Comparable<Object>

Class constructors

S.N. Constructor & Description
1 ObjectStreamField(String name, Class<?> type)
This creates a Serializable field with the specified type.
2 ObjectStreamField(String name, Class<?> type, boolean unshared)
This creates an ObjectStreamField representing a serializable field with the given name and type.

Class methods

S.N. Method & Description
1 int compareTo(Object obj)
This method compares this field with another ObjectStreamField.
2 String getName()
This method gets the name of this field.
3 int getOffset()
This method returns the offset of field within instance data.
4 Class<?> getType()
This method gets the type of the field.
5 char getTypeCode()
This method returns character encoding of field type.
6 String getTypeString()
This method returns the JVM type signature.
7 boolean isPrimitive()
This method returns true if this field has a primitive type.
8 boolean isUnshared()
This method returns boolean value indicating whether or not the serializable field represented by this ObjectStreamField instance is unshared.
9 protected void setOffset(int offset)
This method returns offset within instance data.
10 String toString()
This method returns a string that describes this field.

Methods inherited

This class inherits methods from the following classes:
  • Java.io.Object

No comments:

Post a Comment