• 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

Doubt about wrapper classes

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anybody tell me Is wrapper classes are included in the SCJP
exam?
one more thing, I want to KNow some thing about the keyword Transient, How we can use it? What is the use?
Thank you
Sunee
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wrapper classes are included in the SCJP exam.
The transient keyword is used with serialization. You can serialize objects to transmit them in streams but when you do this, there may be sensitive class data that you don't want to transmit - for example, if you have a User object which has several attributes (name, password, age, address), you may not want to transmit the password for security reasons - you use the transient keyword to identify that data which is not included in an object's serialization. So you might declare password
private transient String password;
to indicate that it shouldn't be serialised.
Hope this helps,
Kathy
[This message has been edited by Kathy Rogers (edited February 08, 2001).]
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is also one more aspect of transient key word. This is deals with Threads. A piece of transient data - tells compiler that several threads may be accessing it simulatneously. Hence data should be completely refershed everytime from memory and completely stored back after each access.
This is generally not mentioned while mentioning about transient data.
Hope this helps
Shrinivas
 
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm moving the to Programmers Certification Study!
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Shrini Kulkarni:
There is also one more aspect of transient key word. This is deals with Threads. A piece of transient data - tells compiler that several threads may be accessing it simulatneously. Hence data should be completely refershed everytime from memory and completely stored back after each access.
This is generally not mentioned while mentioning about transient data.
Hope this helps
Shrinivas


I think what you are referring to is volatile keyword.The only transient keyword I know, makes the variables , not to be saved during serialization.
Please correct me if I am wrong!
Sowmya Vinay

[This message has been edited by Sowmya Vinay (edited February 12, 2001).]
 
reply
    Bookmark Topic Watch Topic
  • New Topic