Which is better for Sound Quality, Headphone Jack or Bluetooth Adapter?

Also how much of a SQ loss is there using a tablet instead of headunit? I've looked around but I can't really find any...