serialize 3 « serialize « Java I/O Q&A





1. ways to "serialize" when you can't    coderanch.com

I'm not sure that this is the right place to ask this question as it concerns an applet but is not necessarily applet specific. I am trying to work out a way to save object states in an applet so that the next person who downloads the applet will see it in the state it was left by the previous user(images ...

2. HD space taken up by serialization    coderanch.com

Recently I changed the method of saving the data of a certain program. Instead of writing to a text file, I serialized the data. Saved in text format, the data files are about 60 kb, and serialized, the file is about 90 kb. Serialized, it takes up more HD memory, which seems strange to me. I was thinking about how to ...

3. basic concepts on Serialization    coderanch.com

Me too know there is a google engine which will bring us what we needed in a fraction of seconds. Why I am posting is, since this gorup members will know some good tutoirals(with samples/examples) for beginners than the google which will list from advanced. May be a silly question to post, but the below thing managed to post me.. [B]No ...

4. I/O and serialization    coderanch.com

I have never posted to a forum, so if I am not doing something right please let me know. I am trying to do a review for a mid-term this week. I figured out the other 21 but I have 2 problems I cannot solve. I am unable to figure what needs to go into the areas marked with instructions. If ...

5. Why Serialization?    coderanch.com

Well, there could be several reasons. One reason very well known is RMI (Remote Method Invocation). With this technology it is possible that two separate JVM (Java Virtual Machine) transfer objects between each other. In order to achieve this, many objects are serialized and transfered through the wire back and forth between the the two JVMs. You could use serialization also ...

6. regarding serialization    coderanch.com

7. serialization    coderanch.com

Originally posted by gaurav abbi: hi Peter, serialization also applies to static variables, the only thing is we need to seperately serialize and desrialize them. No, this is at best confusing and at worst wrong. You can give a static object reference to writeObject(), but you are then serialising the instance pointed to by that static object reference. You could write ...

8. Regarding Serializable    coderanch.com

package com.scjp.practice; import java.io.*; public class Forest implements Serializable { private Tree tree = new Tree(); public static void main(String[] args) throws NotSerializableException { Forest f = new Forest(); try { FileOutputStream fs = new FileOutputStream("Forest Ser"); ObjectOutputStream os = new ObjectOutputStream(fs); os.writeObject(fs); os.close(); } catch(Exception ex) { ex.printStackTrace(); } } }

9. Serialization -    coderanch.com

I guess the original poster understands that they have to have those signatures, but wonders why. The simple answer to all those "why" questions is "because the JLS says so". And it's often not worth too much effort questioning it. In this case, the private methods are called from within the JVM, which doesn't have to abide by the access modifiers. ...





10. A query about Serialization    coderanch.com

On page 527 of book--Beginning Java 2 JDK 5 edition by Ivor Horton, it is written that the class,the object of which you want to serialize has to fulfill the following conditions--- i) The class must be declared public. ii) The class must implement interface Serializable. iii)If the class has a direct or indirect superclass that is not serializable, then that ...

11. Yikes! Why does Serialization behave like that?    coderanch.com

Greetings! Here I am once again with one of my most pertinent questions, maybe this one has an obvious explanation, but I hope the motto: "There are no dumb questions" applies here as well, anyways.. If I have this: class Zoo implements Serializable{ private Gorila KingKong; } class Gorilla{ } It works. But When I assign an Object to the instance ...

12. Serialization ,persistency    coderanch.com

We had almost exactly he same question not long ago, which makes me think of homework or working through some list of questions. In that case, we probably won't give you the whole answer, but send you out to find it yourself. Have you looked for definitions of the two terms? What seems similar or different? How might you use both ...

13. What is Serialization?    coderanch.com

For what is serialization you can read the link given above. Moreover, you can google serialization. Implementing Serializable is bit tricky not that difficult though. YOu just need to take care of few things. Mainly, over-riding of readObject() method. For more you can refer to the book Effective Java from Joshua Bloch or try this link out. Serilization is used in ...

14. Check out this Serialization Stuff !    coderanch.com

Hello, I'm back and posting once more, I'm sorry to bother you guys, but I just had to do this. I need to have this one cleared up and understood ASAP. Here it goes, check the following code: import java.io.*; class MySerial implements Serializable{ private NonSerial ns = new NonSerial(); public static void main(String[] args) { MySerial mySerial = new MySerial(); ...

15. serialization    coderanch.com

Serialization means breaking up an object into a Series (usually of bytes). Note that you usually leave any static members and anything marked "transient" behind. You can save the bytes in a file, or send them across a network. Don't know whether that means sending an object across the internet, but I don't see why not. Go here, download and unzip ...

16. Serialization    coderanch.com

code: class Dog implements Serializable { private int dogSize; public Dog(int size) { dogSize = size; } } class Collar { private int collarSize; public Collar(int size) { collarSize = size; } public int getCollarSize() { return collarSize; } } public class SerializeDog { public static void main(String [] args) { Dog d = new Dog(5);} // here the Collar class ...





17. Serialization    coderanch.com

A rather simple explaination should be used for now. Say there are some characters "a,b,c,d,e,f,g" Serializatioin has to do with the fact that when writing files, such things have to be shipped down the wire one at a time, conceptually. Hence, many files in Java which are normally classes, can be shipped down the wire ( internet ) with sufficient work. ...

18. Serialization: The Return    coderanch.com

Good Evening/Night or even morning for some of ya! I have not been here regularly lately... didn't have many Questions to ask. I hope that's a good sign, but... you know, the bad news is that I have another question *actually, Here it goes: What happens when I serialize an Object (that can be serialized) and during serialization that Object calls ...

19. serialization    coderanch.com

Personally, I've never found a need to use serialization directly in my 10 years of Java programming. But I have used technologies that use it under the covers. For example, when using RMI, serialization is used to send data over the network. Or when replicating a servlet session across a cluster, the objects in the session are serialized.

20. Serialization Handing    coderanch.com

21. Serialization Handing    coderanch.com

22. Serialization    coderanch.com

Static variables cannot be serialized, as serialization is meant for only objects and not for class. Now my doubt is, if we use the static variables in the class, and while serializing the object , the value of static variable may be different and when deserializing the object the static variable may be different. How it will restore the correct value ...

23. serialized    coderanch.com

Object is created in RAM which is a volatile memory so in case when your programs stops (or assume computer is switched off) then object will be vanished. Think, what could be the way you can get the same object back when your computer was running? One way is that you can store the object on Hard Disc when your program ...

24. Serialization Unleashed    coderanch.com

Hello Ranchers, Here is my question : I have read books regarding Serialization and came to know how the serialization works ,but i can't think of the programming situations where we need to use serialization. I know that to store the state of the objects we use it but can any one provide me some useful links or at least the ...

25. Serialization in between 2 environments    coderanch.com

Hi, our application z/os environment now, we are planing to move into z/Linux. we are using mq messanging and sending as a Serialization msgsconverting beans) to queues and while reading from MDBs we are doing de Serialization. now our plan is run the application in both environments for some time, if z/os serializable msg can read in z/linux MDBs and vice ...

26. Doubt:Serialization, any example?    coderanch.com

27. Sample program about serialization.........    coderanch.com

The trick about serialization is that you won't need to write the bytes directly. class MyClass implements Serializable { private String string; private Date date; ... public static void main(String[] args) throws IOException, ClassNotFoundException { MyClass my = new MyClass(); ... // write the object to a stream OutputStream os = new FileOutputStream("object.ser"); ObjectOutputStream oos = new ObjectOutputStream(os); oos.writeObject(my); oos.writeObject("String that ...

28. Serialization in Java    coderanch.com

Hi All, Could anyone please help me to know real world example of where serialization is required. Actually i'm looking for where persistent data is used in real world application, but i think need of serialization would also help me in clarifying this? I tried to find on google but did not satify. Please help in this. Thanks in Advance.

30. Serialization location    coderanch.com

Is there a way to serialize an object to a specific location? I have a class (will post code) in a package that I "C:\>java" from the \classes directory, where the \com folder is, and it serializes the object in \classes, as opposed to the location of the actual class file. package com.teslarobotics.io; import java.io.*; public class Box implements Serializable { ...

31. serializable    coderanch.com

You've set your IDE (Eclipse, Netbeans, etc) to warn you if you miss the serial version UID. http://www.javapractices.com/topic/TopicAction.do?Id=45 http://java.sun.com/javase/6/docs/api/java/io/Serializable.html From the latter: The serialization runtime associates with each serializable class a version number, called a serialVersionUID, which is used during deserialization to verify that the sender and receiver of a serialized object have loaded classes for that object that are compatible ...

32. serialization    coderanch.com

I read that serialization preserves the state of an object. What does this actually mean ? When a program is running and object is created, that object disappears when program is finished. Why do we need to preserve that object ? Is preserving an object is like saving a file ? Incomplete file can be saved and completed later on. Does ...

33. new to java... about serialization...    coderanch.com

when we are going to serialize an object... the size of the serialized file is increases if we add a variable in the scope of the class.. but if we add a variable with in the scope of the member function... the size of the file in which we stored the object remains same..... the number of member functions does'nt increase ...

34. Serialization Doubt    coderanch.com

public class Rob implements Serializable{ int a = 10; transient Rob rob ; void seri(){ rob = new Rob(); rob.a = 20; try { File outFile = new File("E:\\Build\\se\\object.ser"); FileOutputStream fileOutputStream = new FileOutputStream(outFile); ObjectOutputStream outputStream = new ObjectOutputStream(fileOutputStream); outputStream.writeObject(rob); }catch(Exception e){ e.printStackTrace(); } } public static void main(String[] args) { Rob e = new Rob(); e.seri(); } }

35. doublt regarding serialization    coderanch.com

when ever we want to serialize object we can implement serializable interface and if we want we can override writeobject and readobject methods.. but my que is, if we want to implement an interface, we have to implement all of its methods, there is no choice...but here we have choice whether to implement them or not...it seems to be like I'm ...

36. Serialization doubt    coderanch.com

public class Rob implements Serializable{ private static final Rob rob = new Rob(); public static void main(String[] args) { try { OutputStream out = new FileOutputStream("c:\\test.ser"); ObjectOutputStream objOut = new ObjectOutputStream(out); objOut.writeObject(rob); System.out.println("Serialized Successfully!"+rob); //Deserialize InputStream out1 = new FileInputStream("c:\\test.ser"); ObjectInputStream objIn = new ObjectInputStream(out1); Rob rob1 = (Rob)objIn.readObject(); System.out.println("DeSerialized Successfully!"+rob1); } catch(Exception ex) { ex.printStackTrace(); } } }

37. serialization with Java refection    coderanch.com

38. serialization in java    coderanch.com

39. Stuff about serializable    coderanch.com

I have a question about Serialization. What are the conditions for an object to be serializable? I know that all member variable in the object must be a primitive type, String or Serializable object. Does the method's return value and argument need to be serializable too? What if the body of a method uses an object that is not serializable? example: ...

40. Serialization in java    coderanch.com

Can someone please explain serialization in layman terms. when a program is exexuted, its just executed on the server and result displayed on the screen on browser. It just takes a second to execute this program. So all the objects in the program get executed in a second. Where does serilization come in picture ? How can we preserve state of ...

41. Serialization    coderanch.com

serialization is the process of converting an object into a sequence of bits so that it can be persisted on a storage medium (such as a file, or a memory buffer) or transmitted across a network connection link to be "resurrected" later in the same or another computer environment. In a good object oriented application you use bean to store and ...

42. regarding Serialization    coderanch.com

43. Regarding serialization    coderanch.com

Some classes are simply not useful to be serialized. Like classes that represent data that is too related with a specific runtime context: Threads, Streams, etc. Even if you saved them and then restored them again in the same VM their data (and internal memory references) would be useless since the whole runtime context changes on every run.

45. XMLEncooder can serialize SimpleAttributeSet?    coderanch.com

I have a task in which i have to serialize with XMLEncoder an object which contains a SimpleAttributeSet attribute. I noticed that trying to xml serialize a SimpleAttributeSet doesn't produce any output. The API says that : Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage ...

46. Having issues with Serialization    coderanch.com

I'm sure I'm missing something simple here... the problem is when I try to access either student or mentor objects after they are deserialized, I get null pointer exceptions. The application behaves appropriately if I access the objects before the application is closed and reopened. This is the deserialization: public static void main(String[] args) { File f = new File("registrar.ser"); // ...

47. what is the use of Serialization in java?    coderanch.com

Note that serialization is well-suited for temporarily storing objects, or for transferring objects over a network, but it is not very good for long-term storage. The problem is that there is a tight coupling between your classes and the serialized objects. If you change something in your class (you add or rename a member variable, for example), then you will not ...

48. Serialization code Issue    coderanch.com

Given below is the code to test serialization : The problem is , the file name is TestSerialization and its also public . So, TestSerialization class's main() method should get called . But in this case its calling TestSecond class's main() method and main() from TestSerialization class is not getting called. What is the issue? Is it specific to serialization ? ...

49. Serialization - SerialVersionId    coderanch.com

50. Serialization    coderanch.com

The second line uses a pattern called Decorator pattern which adds some extra functionallity to the FileOutputStream at the runtime but still acting on the same object. Generally FileOutputStream is used to write some data to the file but in your case you want to write the object into a file...FileOutputStream itself can not do it,so you decorating the FileOutputStream using ...

51. Serialization    coderanch.com

Pink? Really? That's much more annoying than POSTING IN ALL CAPS WOULD BE. Hint #1: if you want a serious answer to any Java question, don't post your question in a forum labeled "Meaningless Drivel". Hint #2: if you want any help from anyone, post your question in a format that people can read easily. I.e. NOT IN PINK TEXT!!!

52. Serialization in java    coderanch.com

Note that "serialization" is a process, and it can be implemented in different ways. Out of the box, Java offers binary serialization (via the Object[In|Out]putStream classes) and XML serialization for JavaBean objects (via the XML[De|En]coder classes). As Sebastian mentioned, the binary format is brittle in the face of class changes, and may break when used between different JVM versions; so the ...

54. About Serialization    coderanch.com

My interview asked what is serialization. I said " Serilazation is the process of storing the state of object by converting it in to bytestreams. when the object transferred into network that time you need serialization(used in RMI) .1) Implementing serializable interface and another way of 2) writeObject , readObject to do serialization. I need clear explanation please. i googled but ...

55. serialization instead of cloning?    coderanch.com

Using Serialization over piped streams I believe I can perform deep copy (cloning). Is this correct? Here is a code snippet: ..... PipedInputStream pin = new PipedInputStream(); PipedOutputStream pout = new PipedOutputStream(pin); ObjectOutputStream oos = new ObjectOutputStream(pout); oos.writeObject(originalObj); ObjectInputStream ois = new ObjectInputStream(pin); Object cloneObj = (Object) ois.readObject(); Twisting together piped streams in the same thread is prone to deadlock as ...

56. Serialization doubt    coderanch.com

Here is what I came to know after going through a chapter on serialization.. 1. If a class is serializable then all subclasses can also be serialized. 2. If a class is serializable then its super class can also be serialized BUT there could be complications since the super class constructor will be invoked after the deserialization process. Now to all ...

57. Serialization Error- EOFException    coderanch.com

58. Statics and serialization    coderanch.com

59. IO / Serialization    coderanch.com

I attempted to insert a data into an ArrayList and write it into a file and then later on pull it out then read and print it out. However, each time I run the program, when I insert the data using scanner class, instead of adding it into the list, it rewrites the entire file instead, displaying only the inserted input. ...

60. About Serializable    coderanch.com

But you could run this code, If this run successfully, then change the assess modifier( public void writeObject(ObjectOutputStream oos){} and public void readObject(ObjectInputStream ois) { } ) of readObject/writeObject and run again. When you run changing the assess modifier that Oerriden method does not call. It calls a predefine method. As well as private void readObject(ObjectInputStream ois) {} method doesnt having ...

61. Serialization    coderanch.com

I'm just reading the serialization in the SCJP-Book 6.0 and how to use writeObject and readObject if an object is not serializable but used in a composition at page 465. suppose the not serializable object has a juge of member variables. if i got the idea in the book i have to write them all manually and read them one by ...

62. What are the advantages of serialization?    coderanch.com

Serialization indeed makes it easy to store the state of objects in a file (or somewhere else). But you also have to be aware of the disadvantages of serialization. A major disadvantage is that the content of the file where you serialize an object in will be tightly coupled to your source code. If you change something in the source code ...

63. Java Serialization    coderanch.com

Hi, I have one query like, #1) what happen If (Myclass Extends SuperClass implements java.io.serializable), a) what effect will be happen for the variables of SuperClass? 2) Will the variables of superClass serialized??? or Not? Why? Class SuperClass{ } Class BaseClass extends SuperClass implements java.io.serializable { } #2) Class SuperClass implements java.io.serializable{ } Class BaseClass extends SuperClass{ } What happen BaseClass ...

64. Serializable Method contains Any method    coderanch.com

65. understand readObjectNoData callback - Serializable    coderanch.com

Hi all. I'm studying the java IO and faced the callback readObjectNoData at java API about Serializable interface. I understood the use of readObject and writeObject callbacks, but this readObjectNoData is not clear for me. So I'd like to see real example of using it. I've tried to create a Class "Monkey" that extends "Animal" (and Animal implements Serializable), and I've ...

66. Serialization thingymabob???    coderanch.com

67. Using Serialize to hold login info    coderanch.com

Hi there, i am attempting to write a simple login system in java. I have taken the approach of Serializing the login data of the user (username and password), which seems to work just fine. I am then trying to deSerialize the username and password in order to check them against the username and password entered in a JText/JpasswordField in my ...

68. Why Serializable doesnot have any method    coderanch.com

Serializable is a markup interface just like many other as SingleThreadModel, EventListener, Cloneable, RandomAccess, etc. These interfaces are just used to tag the class having certain special characterstic which is recognized by the JVM at runtime, for eg.:- Only the classes implementing the Serializable have the capability to save their state. Here the marker Serializable on the class suggests the JVM ...

69. concerning serialization    coderanch.com

hi, all! i have a question about the serialization framework in java. is it a good or bad procedure to use the classes found there to store user input like you would in a database or xml file? i haven't try this before but i am curious about it but i have also not yet found any really good articles on ...

70. Serialization    coderanch.com

71. live examples of serialization ?    coderanch.com

72. why serialization    coderanch.com

Please QuoteYourSources. Who said you have to use the file system? You get a byte stream and can do with that whatever you want. But as you get only a byte stream that doesn't make sense to anyone else than a Java VM, storing this in a SQL db typically is not very useful. Sure, you can store it in a ...

73. Serialization Vs Externalization    coderanch.com

74. Whether System is Serializable    coderanch.com

I have a question about the Sharpen your pencil exercise of Head First Java 2nd Edition, page 465: is object type System serializable? I think not, because it cannot be instantiated and it has some methods with stream objects so it is already serialized. But if this is not the right answer i like to hear from you! Because i learn ...

75. Serialization    coderanch.com

76. Uses of serialization in projects    coderanch.com

I suspect that the reason serialization was taken off the SCJP exam was not that it's not used, but that it's becoming less common that you have to do it yourself. Technologies like RMI and EJB use serialization, but it's behind the scenes and they take care of a lot of the details for you.

77. Serialization    coderanch.com

78. Java 6 serialization of perimitive    coderanch.com

79. examples of when to use serialization    coderanch.com

i think i understand the basic concept, but at first i didnt. in searching this site i saw others who were a bit confused about this. i have one example. say you wrote a game and all you need to do, is at the end update the top scores. then just writing name and score to a file is quite simple. ...

80. serialization    coderanch.com

81. MFC Serialize    coderanch.com

82. Why serialization?    coderanch.com

Hi All, It is said that serialization is used for storing state of object and also to transfer object over network It is ok that we can store the state of object in the file so for that that class must implement the Serializable interface. But i have one doubt that when session move from one server to another(in case of ...

83. how to do this with serialization    coderanch.com

naved momin wrote:...so when we are reading that file we should get all the instance variable which are stored in that Object if yes than how one can print those instance variable on the console even though they didnt exit after being written to a file . You're mixing several inaccuracies, so it's a bit difficult to know where ...

84. Java Serialization    java-forums.org

The Default Mechanism of serialization Let's start with the basics. To persist an object in Java, we must have a persistent object. An object is marked serializable by implementing the java.io.Serializable interface, which signifies to the underlying API that the object can be flattened into bytes and subsequently inflated in the future. Let's look at a persistent class we'll use to ...

85. Serialization    java-forums.org

Java Code: import java.io.*; /** * The object to serialize. */ class ObjectToSerialize implements Serializable { private String name; private String address; private String phone; public ObjectToSerialize(String name, String address, String phone) { this.name = name; this.address = address; this.phone = phone; } // Default constructor public ObjectToSerialize() { } @Override public String toString() { return name + " lives at: ...

86. Serializing    java-forums.org

hey I have a doubt if I serialize an object of class Dog say d and close the ObjectoutputStream .close();then i nullify the d refrence variable and read in d as try { FileOutputStream fos=new FileOutputStream("serial.txt"); ObjectOutputStream os=new ObjectOutputStream(fos); os.writeObject(d); os.close(); } catch (Exception ioe) { ioe.printStackTrace(); } d=null;//as d is written it should be freed now try { FileInputStream fis ...

87. Can I Serialize "this"??    java-forums.org

here it is! java.io.NotSerializableException: javax.swing.GroupLayout at java.io.ObjectOutputStream.writeObject0(ObjectOutp utStream.java:1156) at java.io.ObjectOutputStream.access$300(ObjectOutput Stream.java:143) at java.io.ObjectOutputStream$PutFieldImpl.writeField s(ObjectOutputStream.java:1668) at java.io.ObjectOutputStream.writeFields(ObjectOutpu tStream.java:454) at java.awt.Container.writeObject(Container.java:3548 ) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknow n Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeWriteObject(Object StreamClass.java:945) at java.io.ObjectOutputStream.writeSerialData(ObjectO utputStream.java:1461) at java.io.ObjectOutputStream.writeOrdinaryObject(Obj ectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutp utStream.java:1150) at java.io.ObjectOutputStream.writeArray(ObjectOutput Stream.java:1338) at java.io.ObjectOutputStream.writeObject0(ObjectOutp utStream.java:1146) at java.io.ObjectOutputStream.access$300(ObjectOutput Stream.java:143) at java.io.ObjectOutputStream$PutFieldImpl.writeField s(ObjectOutputStream.java:1668) at java.io.ObjectOutputStream.writeFields(ObjectOutpu tStream.java:454) at java.awt.Container.writeObject(Container.java:3548 ) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknow ...

88. To serialize or not to serialize?    java-forums.org

I have a requirement to be able to read/write objects to/from an output/input stream. I suppose I can either use the Serialize interface, or I can write my own architecture. I do like the serialize interface because it's quick - with a few lines of code I can make an object serializable. BUT ... I forsee two problems (at least): 1) ...

89. Drawing Serializable, how to save/load?    java-forums.org

Hello all! I've made a program where you could click points, and a line will appear between them. In this way you could make drawings (using ArrayList of Points). Now I want to save the drawing, and load the drawing. I made the class 'Tekening' Serializable. I'll post part of the Panel class here, just to make sure you understand the ...

90. Serialized Java Obj testing    java-forums.org

Hello, Can someone guide which tool should be used for testing GWT services? I dont have UI and testing the services directly. I need a tool through which I can invoke the services and get the response. We can say that I need to call Ajax calls and then change the response which is Serialized Java Obj to XML or Json? ...

91. Serialization    java-forums.org

In your first question about serialization you first need to understand why to serialize ? Serialization is used to save the objects in any stream in their persistent state. So if you want to do so your object should have the characteristics of the serialization so you need to implement the interface sirializable to that class and then you can take ...

92. Serialization    java-forums.org

My understanding of serialization is that it will serialize all object references(assuming they are also serializable), and it will create a "web". I do not believe there is a limit to how much will be serialized either. The best way to check this would be to simply make a few small classes and then a final class which has one instance ...

93. Code Help: Serialization    java-forums.org

I honestly don't even know how to begin with this problem. Given the UML class diagram for class GpaRecord and a serialized file containing GpaRecord objects, produce the following: 1. Write the Java class file for GpaRecord, including overriding the toString method. Output of the toString method should match the output provided with these instructions. 2. Write code to read the ...

94. Serialization in SCJP....    forums.oracle.com

I hope this is a sensible question and I havent missed something but I recently completed an official Sun SCJP practice exam but I get stuck on one question which was about Serialization which I have heard of but never learnt, I didnt realise this was even in the exam? I couldnt find it listed in the objectives... If it is ...

95. Serializable    forums.oracle.com

96. Serialization error    forums.oracle.com

97. Serialization    forums.oracle.com

Hello, I have to write three types of linkedlist to a .ser file. I could do the writing part, but when it comes to reading a found a little problem. I can not distinguish between these two types in order to use the explicit cast. Do you know a method in order to use a trick to distinguish them in the ...

98. Serialization Retrieval    forums.oracle.com

I just started messing with serialization and I'm not finding what I want to do, or even if what I want to do is possible. Basically, I can type info into a textfield, click a save button, and then the input is saved to a .txt file. I'm wondering how (or if) I can retrieve that input in the .txt file ...

99. serialization    forums.oracle.com

Serialization is basically a way to save java objects. For instance, say you have an array of Person containing first name, and last name for each one. If you wanted to save that list, so when you run your program again, you could just write each first and last name to file. Right? Well, with serialization, you could just write the ...

100. simple(?) serialization    forums.oracle.com

/* THE CODE IN THIS FUNCTION IS REALLY THE ONLY THING I ADDED RATHER * THAN LEAVING TO NETBEANS. IF I WRITE OUT THE RADIO BUTTONS SEPARATELY * AS COMMENTED OUT BELOW, THE PROGRAM AT LEAST RUNS. AS IT IS WRITTEN, SIMPLY * TRYING TO WRITE THE JFRAME TO THE OBJECT STREAM, THERE IS A NONSERIALIZABLE * ERROR. */