*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Method behaving differently Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply locked New topic
Author

Method behaving differently

mvPrasad Regula
Ranch Hand

Joined: Sep 14, 2009
Posts: 42
Why is the following code returning zero? If I call giveMeJ() directly in System.out.println, I am getting 10.


Prasad Regula
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61103
    
  66

Having ignored multiple warnings regarding your display name, your account has been closed.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Method behaving differently