exam questions

Exam 1z0-819 All Questions

View all questions & answers for the 1z0-819 exam

Exam 1z0-819 topic 1 question 64 discussion

Actual exam question from Oracle's 1z0-819
Question #: 64
Topic #: 1
[All 1z0-819 Questions]

Given:



You want to implement the java.io.Serializable interface to the MyPersistenceData class.

Which method should be overridden?

  • A. the readExternal method
  • B. nothing
  • C. the readExternal and writeExternal method
  • D. the writeExternal method
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mendjijet
5 months, 4 weeks ago
Selected Answer: B
B is ok java.io.Serializable is a marker interface
upvoted 1 times
...
d7bb0b2
6 months, 4 weeks ago
B. nothing When a class implements the java.io.Serializable interface, it does not need to override any methods. This interface is a marker interface and does not contain any methods. Serialization and deserialization are handled automatically by the Java Virtual Machine (JVM).
upvoted 2 times
...
Stavok
1 year ago
Selected Answer: B
To implement the java.io.Serializable interface to the MyPersistenceData class, you don’t need to override any methods. The Serializable interface is a marker interface that doesn’t have any methods. It simply indicates that the class is serializable and its objects can be written to and read from a stream. Therefore, the correct answer is B. nothing.
upvoted 2 times
...
belal97
1 year ago
B is correct interface Serializable does not have any method
upvoted 1 times
...
tmuralimanohar
1 year, 1 month ago
Answer: C
upvoted 1 times
...
Obalt
1 year, 6 months ago
Correct answer is B
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago