From Java Tutorial : Providing Object Serialization for Your Classes
This method automatically writes out everything required to reconstruct an instance of the class, including the following: - Class of the object - Class signature - Values of all non-transient and non-static members, including members that refer to other objects
So the correct answers should be b) and c). Private and protected (instance) fields are serialized since they pertain to the object itself.
Hey paul i got that question from this link http://sanjayahuja.tripod.com/tech/scjp/scjp.html i could get only 5/20 in the questions from 181 to 200 ..... valentin... Thanks for that link ... can you let me know how much do you think one should be scoring in the 200 questions in the link above?
I've done the first hundred, and guess what - they're all Marcus Green exam questions! So I guess you should be okay with a score of around 80%. Update: heh, questions seem come from an outdated version of the exam. Some of the questions are still poorly worded, like question #102 (Green's Exam 2-42.) [ June 19, 2002: Message edited by: Paul Villangca ]
Good work paul .. i got only 70% in the 1st 100 and guess whatttttt the remaining 100 drove me crazy and made me forget the basics for a moment i had spent 2 days analysing the mistakes i have committed in the remaining 100 and am not yet done and particularly those questions on strings I tell you .... 2&^*(^(*&^$&*&6 DROVE ME LITRALLY mad ... i did an exhausting testing on the way string class works and found out its really really wierd. .. i shall post those questions on strings later today .... when are you taking your certification exam ?
About the questions on Strings, there's a basic rule I follow: When a String method will return a String that has the same contents as the original String, it returns the original String object instead. Got that? For example: "Hello!".trim() == "Hello!" returns true.
As for the other difficult ones, well... my only advice is to compile and run them to see what happens.