• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Questions that depend on deciphering English rather than Java

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A question from the K&B 6 mock exam (Q30 of 2nd mock exam):
Which are true? (Choose all that apply.)
A. To implement java.io.Serializable, a class must implement two methods.
B. When an object is serialized, if it has references to other objects, those objects must be serializable.
C. A serialized object can be deserialized only by the same JVM which was used to serialize it.
D. The values in the instance variables marked volatile will not survive serialization and deserialization.

The correct answer (according to the exam) is B.

However, to my thinking, if an object has references to other objects, those objects need not be serializable if they are marked transient. "Those objects must be serialzable" is therefore not true. Perhaps I differ on what "must" means in this context. Or perhaps the questioner meant "To serialize all members of an object" when they said "When an object is serialized".

Regardless, the problem here is not with my understanding of serialization, but rather my understanding of the meaning of the question. I'm not having trouble deciphering Java code, I'm having trouble deciphering the intent of the questioner's English. And this worries me since I have no way of preparing for that.

Have people encountered other questions like this, where figuring out the meaning of the questions themselves is the hurdle you have to overcome?
[ December 20, 2008: Message edited by: Jamie MacDonald ]
 
Ranch Hand
Posts: 1032
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I share your view. I have encountered a number of ambiguous questions myself, and usually I find that when a question like that comes up you have to think simple.

I'll give you an example (from Enthuware SCJP6, and I am paraphrasing):

When a continue statement is found in a while loop, that causes the current iteration of the loop to finish, and the next iteration to start.

Answer 1: True
Answer 2: False

I answered False, because when a continue statement is found, that causes the current iteration of the loop to finish, the while boolean condition to be checked, and if it is satisfied, the next iteration of the while loop to start. Now, do you consider the checking of the boolean condition to be part of the iteration? I suppose you can look at it both ways, but the point is that I complicated myself too much and I gave the wrong answer.

I wonder if there are questions of this sort in the actual exam. I hope not.
[ December 20, 2008: Message edited by: Ruben Soto ]
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you will find that the actual exam is less ambiguous than some mock exam questions.
 
Ruben Soto
Ranch Hand
Posts: 1032
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can drink to that!
 
What are you doing? You are supposed to be reading this tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic