Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mock question for static method?

 
Sam Sunamin
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the result of the following code?



The code above is compiled and run, but the suprised thing is that the result is
print - 0;

Can anyone explain? Thanks in advance.
 
Stuart Ash
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Didn't we discuss this before?

Am I getting a deja vu !!
 
Sam Sunamin
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the link for me? I did not get the post?

Thank you.
 
Stuart Ash
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Voila - here it is!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic