• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

serialization

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HEllo everybody .. am new to javaranch.. its a simple question i am shooting here.. and am new to java as i am preparing fo scjp xam.
true OR false???
An object Serialized on one JVM can be successfully Deserialized on another JVM???

one more question,... this is from scjp java5 study guide from kathy sierra and bert bates.. 310-055,, page number 75;question no-5
which mathod nameS follow the JavaBeans naming standard??
A. addSize.
B. getCust.
C. deleteRep.
D. isColorado.
E. putDimentions.

the answer is given here as B. getCust and D. isColorado...

i suspect the answer A. addSize is also right as per what i studied.
any method that starts with prefixes-- get,is,set,add and remove

then why A. addSize marked as wrong here.

 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JR !

mohammad shaid wrote:
An object Serialized on one JVM can be successfully Deserialized on another JVM???


http://forums.sun.com/thread.jspa?threadID=5403597

mohammad shaid wrote:i suspect the answer A. addSize is also right as per what i studied.
any method that starts with prefixes-- get,is,set,add and remove

then why A. addSize marked as wrong here.


As far as my knowledge is concerned, the set, get and is are only valid prefixes for bean.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
add is valid prefixes for bean.
Listener method names used to "register" a listener with an event source must use the prefix add, followed by the listener type.
For example, addActionListener() is a valid name for a method that an event source will have to allow others to register for Action events.
Therefore option (A) is invalid.
 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Serialization is not a part of the SCJP objectives any more, so you don't have to worry about that for your preparation...
 
mohammad shaid
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ankit Garg wrote:Serialization is not a part of the SCJP objectives any more, so you don't have to worry about that for your preparation...



i am writing the scjp 5 i.e 310-055 exam.. it has the objectives of serialization as far as i refer K&B.. if you can help me get to the present objectives or a place where it s speacified that serialization s not included then i will b thankful
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic