This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance 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