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 .

891 questions
-1
votes
2 answers

GAMEPROGRAMMING Client/Server communication through .... ? (JAVA)

I have a general question about programming the client/server communication on a network game. I use TCP as protocol, and the communication ... works, but I'm not sure, if it is a efficient way. In general , actions that happen on the client-side…
-1
votes
2 answers

AsyncTask android error when closing the program after

i am developing an android news reader apps. I have a AsyncTask that implements Serializable, so that i can save instance. I use it to handle the app refresh when rotating my phone. It work, when i rotate my apps, the task still running. but when…
mutokenji
  • 525
  • 1
  • 5
  • 14
-1
votes
1 answer

Easiest way to send non-serialized objects through webservices c#

Could someone give me recommendations on which would be the easiest way to send objects through webservices (back and forth through the client-side and server-side) on C# without the client-side knowing the definition of the objects to send.
Marcox
  • 102
  • 10
-1
votes
1 answer

Work of Serializable in Java

When serializable is a marker interface, how could it make the object persistent? When the body of the interface is nothing how it it perform some action on the class that implements it?
Vivek
  • 43
  • 7
-2
votes
1 answer

IOException problem with file loading - Java /

How can i fix problem with load ArrayList from file? Full code is on the git: project github link When I load data from file I'll get it back -> IOException I'm learning to use the stream so I'm writing it to a file. After the end of the program, I…
-2
votes
1 answer

Exception serializing abstract class

Im trying to develop a little android game and i'm having a hard time understanding how can i surpass this problem. What i'm trying to do is send data between activities.To achieve that i'm using the intent extras. The data that im trying to send is…
-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
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
  • 63
  • 5
-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
  • 543
  • 1
  • 8
  • 20
-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
1 answer

Difference between Serializable, Parcelable in Android

1].What is the difference between Serializable, Parcelable? 2].Can I implement Both Interfaces in Pojo Class?,If answer is No,what is the reason for that?
kavie
  • 2,154
  • 4
  • 28
  • 53
1 2 3
59
60