This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

primary key class  RSS feed

 
sid nagol
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
sawan parihar
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!