both cells are formed in bone marrow.....but t cells matures into thymus....and b cells matures into bone marrow ! both helps in defense !
B cells can connect to antigens right on the surface of the invading virus or bacteria.
T- cells can only connect to virus antigens on the outside of infected cells.
for more info , comment !