It is well known that a Lipschitz function on the real line does not have to be operator Lipschitz. We show that the situation changes dramatically if we pass to Hölder classes. Namely, we prove that if f belongs to the Hölder class Ł\a(R) with 0<\a<1, then ∥f(A)−f(B)∥≤\const∥A−B∥\a for arbitrary self-adjoint operators A and B. We prove a similar result for functions f in the Zygmund class Ł1(R): for arbitrary self-adjoint operators A and K we have ∥f(A−K)−2f(A)+f(A+K)∥≤\const∥K∥. We also obtain analogs of this result for all Hölder--Zygmund classes Ł\a(R), \a>0. Then we find a sharp estimate for ∥f(A)−f(B)∥ for functions f of class Łø\df{f:øf(\d)≤\constø(\d)} for an arbitrary modulus of continuity ø. In particular, we study moduly of continuity, for which ∥f(A)−f(B)∥≤\constø(∥A−B∥) for self-adjoint A and B, and for an arbitrary function f in Łø. We obtain similar estimates for commutators f(A)Q−Qf(A) and quasicommutators f(A)Q−Qf(B). Finally, we estimate the norms of finite differences j=0∑m(−1)m−j(mj)f(A+jK) for f in the class Łø,m that is defined in terms of finite differences and a modulus continuity ø of order m. We also obtaine similar results for unitary operators and for contractions.