• 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

primary key class

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if i have a composite class,
is it required that the class shoudl have instane variables as public
or is it suffciet it has public accessor methods for the instances.
i read conflicting statements on various online tests about this.
thanks
sid
 
sid nagol
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have one more question,
talking only about cmp
what are the valid types for cmp fields
1) primitives true or false
2) wrapper - true or false
3) serializable class?? how can this be possible??
does the seializable class have field names corresponing as abstract accessor methods in the bean class.
i aould greatly appreciate if u can give an example of this
thanks
 
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

is it required that the class shoudl have instane variables as public or is it suffciet it has public accessor methods for the instances.



Yes the class should have public fields.
 
reply
    Bookmark Topic Watch Topic
  • New Topic