מערכות מידע נושאים מתקדמים בתכנות- עדכני

לחץ כאן לכל השאלות

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

1
done
Explanation: oos.writeFloat(3.5); writes 3.5 in output stream. A new input stream is linked to stream ‘serials’, an object ‘ois’ of ObjectInputStream is used to access this newly created stream, ois.available() gives the total number of byte in the input stream since a float was written in the stream thus the stream contains 4 byte, hence 4 is returned and printed.
by
מיין לפי
by may levi
may levi 0 נקודות · יותר מ-6 חודשים
מוניטין: 1
אשמח להסבר
by
by Ido Kraicer
Ido Kraicer 0 נקודות · יותר מ-6 חודשים
מוניטין: 1
Float הוא פרימיטיבי בגודל 4 בתים, אז הכתיבה שלו היא 4 בתים
by

* השאלה נוספה בתאריך: 21-07-2019