This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes What is the output for this Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What is the output for this Class" Watch "What is the output for this Class" New topic
Author

What is the output for this Class

jami siva
Ranch Hand

Joined: Oct 16, 2009
Posts: 66
what is the output for the above code , In K & B,page 281, they given output as :
A. The output could contain 30
B. The output could contain @bf73fa




But when i run this application ,i got compilation error , because getBidValue() is not there in enum class.

Any one help for this
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 44525
    
  34
Most likely a spelling error. Try getValue rather than getBidValue.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the output for this Class
 
It's not a secret anymore!