Questions tagged [serializable]

Serialization is the process of converting a data structure or object state into a format that can be stored. The `SerializableAttribute` is a .NET Framework attribute that signifies the object is serializable. The `Serializable` Java marker interface indicates that an object can be serialized using standard JVM serialization mechanisms. Other languages and frameworks have similar abstract classes or attributes.

Serialization is the process of converting a data structure or object state into a format that can be stored.

The SerializableAttribute is a .NET Framework attribute that signifies the object is serializable. Other languages and frameworks have similar abstract classes or attributes.

The Serializable Java marker interface indicates that an object can be serialized using standard JVM serialization mechanisms.

Other uses of this tag should probably use .

854 questions
-2
votes
1 answer

display list of items on one activity

import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; import androidx.annotation.NonNull; import…
-2
votes
2 answers

Why a static field of a class, which is not serializable, will throw NotSerializableException when an instance being serialized?

In scala, I think a field of a object will be static and not be serialized when serializing, but if the field is non serializable, a NotSerializableException got. Why ? Similar java code is OK. Below is a simple example. Thanks Scala code: package…
Lee John
  • 1
  • 1
-2
votes
4 answers

How to pass array or arraylist by intent which has unserializable data?

What I want to do is passing DataModel array between Activity by Intent. DataModel class has Bitmap object and FirebaseVisionLabel object. I found many sites to implement this. Many people said that DataModel class should implements Serializable or…
baeharam
  • 413
  • 1
  • 5
  • 18
-2
votes
1 answer

Serializable header error reading a file

im trying to make a translator (it's homework) using a serializable file, I did write one object and it worked, but when I want to have multiple entrances on the file it gives a header error, I use a custom ObjectInputStreamClass and the program is…
-2
votes
1 answer

Passing Object through intent, object can't be serializable

I have looked throughout Google and Stack Overflow and found that this should work when trying to pass an object through an Intent. However I still get this error: This doesn't make sense as multiple websites have said this should work. Also…
user6158791
-2
votes
1 answer

Converting several java variables to a single object using object serialization

The following code is used to get several parameters from a java method. import java.io.Serializable; public class Example implements Serializable{ void getValues(String m,int x, int y){ } } How can I get the 3 paramaters m,x and y into a single…
Amal
  • 1
  • 1
-2
votes
1 answer

Why structures are Serializable in .net?

Public Structure structResult Public ResultID As Integer Public SurveyID As Integer Public QuestionID As Integer Public AnswerID As Integer Public Text As String Public ModifierID As Integer Public…
-2
votes
2 answers

Could anyone tell me whats use of implements interface which extended with "Serializable" interface with example?

Interface with serializable implements? public interface SearchCriteria extends Serializable {} class which implements a interface which doesnt have method initilization just a extented by "Serializable" interface public class…
user5037864
-2
votes
1 answer

Send list of objects which contain other custom objects from one activity to another

This is my class whose list I want to send to another activity. public class PostComments { public User from; public String message; public String createdTime; public String like_count; public Boolean user_likes; } This is…
Yawar
  • 1,846
  • 3
  • 24
  • 38
-2
votes
1 answer

Interface implementation concept

In java, if we're implementing an interface in a class, we must provide implementation to the methods present in interface., but in case of Serializable interface, we no don't need to provide implementation to the methods presents in the…
Vikas Gope
  • 17
  • 3
-2
votes
1 answer

The feature of locking method in dbms

I am newer in database design ,i want to know some features of locking protocol in dbms . My features are: Deadlock Free View/conflict serializable Recoverable Cascadeless And my protocols are : 2pl Strict 2pl Graph based Timestamp Validation…
-3
votes
1 answer

Transient variables without getters in java

If I have transient variables in a base class (implements serializable) and subclass that extends it, I understand subclasses are also automatically serialized, but should the getters still be required in the base object. I made my vars transient…
justme
  • 53
  • 5
-4
votes
1 answer

Does child class serialize parent class' members that aren't serializable?

If class B extends class A, class B implements Serializable, and class A has a public static initialized variable that is not serializable... trying to write a class' B object with writeObject() method of FileOutputStream, will serialize the…
-4
votes
1 answer

java serializable NotSerializableException

I've got a NotSerializableException, and the jvm is telling me it is coming from a class that has absolutely nothing to do with what is getting serialized to the ObjectOutputStream! What on earth could be going on? The class it mentions as the…
Sam Adamsh
  • 3,163
  • 6
  • 28
  • 50
1 2 3
56
57