GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Manhattan Associates  >  Java
Go To First  |  Previous Question  |  
 Java  |  Question 17 of 17    Print  
what is output of System.out.println(5|4)
5


  
Total Answers and Comments: 3 Last Update: October 06, 2008     Asked by: rajendra kumar netha 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 06, 2006 04:31:29   #1  
prasanta        

RE: what is output of System.out.println(5|4)

binary of 5 101

binary of 4 100

5 |4 -----101 5


 
Is this answer useful? Yes | No
December 07, 2006 08:36:26   #2  
sambasiva        

RE: what is output of System.out.println(5|4)

It gives 1 as output.


 
Is this answer useful? Yes | No
October 06, 2008 07:33:15   #3  
praveen123456 Member Since: October 2008   Contribution: 1    

RE: what is output of System.out.println(5|4)
I think its 5 due to or function of two 101 and 100 results in 101 5.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape