• Post Reply Bookmark Topic Watch Topic
  • New Topic

Output of the code.  RSS feed

 
Shivam Joshi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please explain the output of the question in the attachment.
scanner_20170908_234617.jpg
[Thumbnail for scanner_20170908_234617.jpg]
 
Campbell Ritchie
Marshal
Posts: 56578
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We tell you to tell us what you think the output will be
 
Shivam Joshi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:We tell you to tell us what you think the output will be


The output is C and D .  I just wanted to know what is the role of getId() method . The question is from Kathy Sierra book .
 
Norm Radder
Rancher
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the role of getId() method

Have you read the API doc for that method?  Did you have any questions about what it says?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!