There is disclosed a digital camera which detects a focus of a lens unit
by a method selected from a plurality of focus detection methods based on
information on the lens unit taken from the lens unit attached to the
digital camera. As an example of a focus detection method, there is a
method by a phase difference system or a contrast system, but the method
is not limited to this example.