Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Output

 
ranjan manohar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,

Hope all are doing good.

I came across this question recently. Output of System.out.println(4&5);

Though I got the answer, I am not able to understand the reason behind it, Can anyone please help me out.

Thanks,
Ranjan,
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bitwise and.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic