GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

Deserialization

desnunan Computer Programming Englisch 6 Karten

Karten in diesem Stapel (6)

  1. 1What is the syntax for making a connection stream to restore an object?FileInputStream fileStream =
    new FileInputStream
    ("MyGame.ser");
  2. 2What is the syntax for making a chain stream to be chained to a file input stream?ObjectInputStream os =
    new ObjectInputStream
    (fileStream);
  3. 3What is the syntax to read object?Object one = os.readObject();
    Object two = os.readObject();
  4. 4How do you cast read objects to their real type?Example:
    GameCharacter elf =
    (GameCharacter) one;
    GameCharacter troll =
    (GameCharacter) two;
  5. 5What is the last operation to do once objects have been read from the input stream?Close the ObjectInputStream
    os.Close();
  6. 6What is the syntax used to get the version ID for your class?Type at command prompt
    % serialver Dog

Informationen

Beschreibung
Computer Programming (Java) Karteikarten am Deserialization, erstellt von desnunan am 19/04/2014.
Erstellt von
desnunan
Aufrufe
29
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck