By virtue of the substantially perfect conformity of nailheads and mesas, provided hereby, irregularities of junction characteristics of different junctions 15 (FIG- URES 1 to 3) or 115 (FIGURE 4) are substantially avoided, even when the diode or other semiconductor device is operated at extremely high frequencies.