GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  J2EE  >  Java

 Print  |  
Question:  What is the difference between the >> and >>> operators

Answer: The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that havebeen shifted out.


October 10, 2005 07:34:47 #2
 kanniappan   Member Since: Visitor    Total Comments: N/A 

RE: What is the difference between the >> and >>> oper...
 

>> : operator once moves the bits towards right. It doesn't move the sign bit.

>>>: operator once moves the bits towards right, the sign bit also will gets moving.

     

 

Back To Question