bit shifting

byte A=B0110;
byte B=B1011;
byte AB=(A<<4)|B;

This should work