This review provides a theoretical basis for understanding the current-phase relation (C\ensuremath{\Phi}R) for the stationary (dc) Josephson effect in various types of superconducting junctions. The authors summarize recent theoretical developments with an emphasis on the fundamental physical mechanisms of the deviations of the C\ensuremath{\Phi}R from the standard sinusoidal form. A new experimental tool for measuring the C\ensuremath{\Phi}R is described and its practical applications are discussed. The method allows one to measure the electrical currents in Josephson junctions with a small coupling energy as compared to the thermal energy. A number of examples illustrate the importance of the C\ensuremath{\Phi}R measurements for both fundamental physics and applications.
Josephson junctions epitomize one of the most profound macroscopic quantum aspects of superconductivity, while at the same time enabling a wider range of applications than any other devices of superconducting electronics. In the past two decades, ferromagnetic barriers further enriched the junctions' physical properties range and promise application of junctions with such barriers in superconducting memories and quantum computing. All of the devices described in this section employ the Josephson effects and many also rely on combining this macroscopic quantum property with another fundamental quantum principle exemplified in superconductors, that is magnetic flux quantization. The first is superconducting logic gates which have been realized in a number of different forms, the front runner for widespread application at the time of writing being single flux quantum logic in several energy-efficient variants. The second major application device which combines both Josephson effects and flux quantization is the SQUID.