Quantized phase effect and Josephson tunneling