What is left shift and right shift?

Answer Posted / balamurugan

This operators are quite near to the machine. Any
processors (I know) have
a binary shift operation. The integer is internally known
as a binary
number to the processor. In fact an integer fills exactly
one register of
your processor. This register is shifted left by << and
right by >> the
many bits you want.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we override private method in java?

611


What are the different ways to handle exceptions?

535


What is array and arraylist in java?

518


What is meant by collection in java?

536


How to invoke external process in java.

557






What is byte [] in java?

525


What is a flag variable?

555


What is the difference between length and length () in java?

521


What are the disadvantages of using inner classes?

544


What is mvc in java?

551


How to sort array in descending order in java?

506


What is skeleton and stub? What is the purpose of those?

535


What is string in java?

550


What is the name of the java compiler?

512


How does class forname work in java?

474