Discuss, Learn and be Happy דיון בשאלות

help brightness_4 brightness_7 format_textdirection_r_to_l format_textdirection_l_to_r

איזה מהבאים הוא שיטה של ממשק ObjectOutput המשמש כדי לסיים את מצב הפלט כך שכל המאגרים מנוקים?

1
done
by
מיין לפי

איזה משיטות הממשק ObjectOutput משמש לכתוב את האובייקט להזנת קלט או פלט כנדרש?

1
done
Explanation: writeObject() is used to write an object into invoking stream, it can be input stream or output stream.
by
מיין לפי

מה הפלט של תוכנית זו?

1
done
by
מיין לפי
by Shimon Shouei
Shimon Shouei 9 נקודות · יותר מ-6 חודשים
מוניטין: 135
למה זאת התשובה הרי אין פה מימוש של הדפסה
by
by Mark Tseytlin
Mark Tseytlin 1 נקודות · יותר מ-6 חודשים
מוניטין: 203
אף תשובה לא נכונה אבל זה ידפיס את האובייקט כשם מחלקה והHASCODE
by

מה הפלט של תוכנית זו?

1
done
Explanation: x = ois.readInt(); will try to read an integer value from the stream ‘serial’ created before, since stream contains an object of Myclass hence error will occur and it will be catched by catch printing deserialization.
by
מיין לפי
by Manuel Ruffieux
Manuel Ruffieux 0 נקודות · יותר מ-6 חודשים
מוניטין: 175
הסבר?
by
by iftach shoham
iftach shoham 0 נקודות · יותר מ-6 חודשים
מוניטין: 14
READINT לאובייקט
by

מהו הפלט של תוכנית זו?

1
done
Explanation: No output is printed. CharArrayReader object input1 contains string “abcdefgh” whereas object input2 contains string “bcde”, when while((i=input1.read())==(j=input2.read())) is executed the starting character of each object is compared since they are unequal control comes out of loop and nothing is printed on the screen.
by
מיין לפי
by Matan Vaknin
Matan Vaknin 0 נקודות · יותר מ-6 חודשים
מוניטין: 1
מישהו שהבין ויכול להסביר?
by
by Noa Stern
Noa Stern 2 נקודות · יותר מ-6 חודשים
מוניטין: 30
ממה שאני הבנתי יש בInput1 רשימה של מחרוזות : "abcdefgh" ובinput2 יש "bcde" כי הוא לוקח את מה שמתא 1 עד תא 4. ואז בwhile הראשון הוא מנסה לראות אם a שווה לb והתנאי מקבל false אז הוא לא מדפיס כלום. אם מישהו בדק הרצה או משהו תדייקו אותי
by

מה הפלט של תוכנית זו?

1
done
Explanation: oos.writeFloat(3.5); writes in output stream which is extracted by x = ois.readInt(); and stored in x hence x contains 3.5.
by
מיין לפי
by Itay Razumenko
Itay Razumenko 0 נקודות · יותר מ-6 חודשים
מוניטין: 60
למה
by
by Keren Gor
Keren Gor 0 נקודות · יותר מ-6 חודשים
מוניטין: 1
זה טעות
by
by Mark Tseytlin
Mark Tseytlin 1 נקודות · יותר מ-6 חודשים
מוניטין: 203
אין פה טעות, הרצתי את זה וזה עובד
by
by avital galper
avital galper 1 נקודות · יותר מ-6 חודשים
מוניטין: 15
אשכרהההההה
by
by Eitan Markman
Eitan Markman 1 נקודות · יותר מ-6 חודשים
מוניטין: 46
Float מיוצג עם 4 בייטים והמטודה readInt פשוט קוראת 4 בייטים הבאים (גם int זה 4 בייטים) שיש בstream.
by
by Sapir Tzaig
Sapir Tzaig 0 נקודות · יותר מ-6 חודשים
מוניטין: 1
למה שזה ידפיס 3.5?
by
by Omri Peretz
Omri Peretz 0 נקודות · יותר מ-6 חודשים
מוניטין: 59
לדעתי זה אמור להיות 3 כי readInt() קורא 4 בייטים ומבצע המרה לinteger. אז הקריאה תעבוד ללא אקספשן אבל 3.5 יומר לint
by
by Manuel Ruffieux
Manuel Ruffieux 0 נקודות · יותר מ-6 חודשים
מוניטין: 175
אתה כנראה טועה
by

כיצד אובייקט יכול להיות serializable?

1
done
Explanation: A Java object is serializable if class or any its superclass implements java.io.Serializable or its subinterface java.io.Externalizable.
by
מיין לפי

מה זה serialization?

1
done
Explanation: Serialization in Java is the process of turning object in memory into stream of bytes.
by
מיין לפי

מה זה deserializtion?

1
done
Explanation: Deserialization is the reverse process of serialization which is turning stream of bytes into an object in memory.
by
מיין לפי

כמה שיטות יש לSerializable?

1
done
Explanation: Serializable interface does not have any method. It is also called a marker interface.
by
מיין לפי
by Roy Dor
Roy Dor 4 נקודות · יותר מ-6 חודשים
מוניטין: 80
סיריאליזבל יא אפס
by